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 BOOST_PREDEF_ARCHITECTURE_SPARC_H
9#define BOOST_PREDEF_ARCHITECTURE_SPARC_H
10
11#include <boost/predef/version_number.h>
12#include <boost/predef/make.h>
13
14/* tag::reference[]
15= `BOOST_ARCH_SPARC`
16
17http://en.wikipedia.org/wiki/SPARC[SPARC] architecture.
18
19[options="header"]
20|===
21| {predef_symbol} | {predef_version}
22
23| `+__sparc__+` | {predef_detection}
24| `+__sparc+` | {predef_detection}
25
26| `+__sparcv9+` | 9.0.0
27| `+__sparcv8+` | 8.0.0
28|===
29*/ // end::reference[]
30
31#define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER_NOT_AVAILABLE
32
33#if defined(__sparc__) || defined(__sparc)
34# undef BOOST_ARCH_SPARC
35# if !defined(BOOST_ARCH_SPARC) && defined(__sparcv9)
36# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(9,0,0)
37# endif
38# if !defined(BOOST_ARCH_SPARC) && defined(__sparcv8)
39# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(8,0,0)
40# endif
41# if !defined(BOOST_ARCH_SPARC)
42# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER_AVAILABLE
43# endif
44#endif
45
46#if BOOST_ARCH_SPARC
47# define BOOST_ARCH_SPARC_AVAILABLE
48#endif
49
50#define BOOST_ARCH_SPARC_NAME "SPARC"
51
52#endif
53
54#include <boost/predef/detail/test.h>
55BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_SPARC,BOOST_ARCH_SPARC_NAME)
56

source code of include/boost/predef/architecture/sparc.h