MessagePack for C
Loading...
Searching...
No Matches
sparc.h
Go to the documentation of this file.
1/*
2Copyright Rene Rivera 2008-2015
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6*/
7
8#ifndef MSGPACK_PREDEF_ARCHITECTURE_SPARC_H
9#define MSGPACK_PREDEF_ARCHITECTURE_SPARC_H
10
12#include <msgpack/predef/make.h>
13
14/*`
15[heading `MSGPACK_ARCH_SPARC`]
16
17[@http://en.wikipedia.org/wiki/SPARC SPARC] architecture.
18
19[table
20 [[__predef_symbol__] [__predef_version__]]
21
22 [[`__sparc__`] [__predef_detection__]]
23 [[`__sparc`] [__predef_detection__]]
24
25 [[`__sparcv9`] [9.0.0]]
26 [[`__sparcv8`] [8.0.0]]
27 ]
28 */
29
30#define MSGPACK_ARCH_SPARC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
31
32#if defined(__sparc__) || defined(__sparc)
33# undef MSGPACK_ARCH_SPARC
34# if !defined(MSGPACK_ARCH_SPARC) && defined(__sparcv9)
35# define MSGPACK_ARCH_SPARC MSGPACK_VERSION_NUMBER(9,0,0)
36# endif
37# if !defined(MSGPACK_ARCH_SPARC) && defined(__sparcv8)
38# define MSGPACK_ARCH_SPARC MSGPACK_VERSION_NUMBER(8,0,0)
39# endif
40# if !defined(MSGPACK_ARCH_SPARC)
41# define MSGPACK_ARCH_SPARC MSGPACK_VERSION_NUMBER_AVAILABLE
42# endif
43#endif
44
45#if MSGPACK_ARCH_SPARC
46# define MSGPACK_ARCH_SPARC_AVAILABLE
47#endif
48
49#define MSGPACK_ARCH_SPARC_NAME "SPARC"
50
51#endif
52
#define MSGPACK_ARCH_SPARC_NAME
Definition sparc.h:49
#define MSGPACK_ARCH_SPARC
Definition sparc.h:30
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition test.h:13