2 Copyright Rene Rivera 2008-2015
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BOOST_PREDEF_ARCHITECTURE_SPARC_H
9 #define BOOST_PREDEF_ARCHITECTURE_SPARC_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
15 [heading `BOOST_ARCH_SPARC`]
17 [@http://en.wikipedia.org/wiki/SPARC SPARC] architecture.
20 [[__predef_symbol__] [__predef_version__]]
22 [[`__sparc__`] [__predef_detection__]]
23 [[`__sparc`] [__predef_detection__]]
25 [[`__sparcv9`] [9.0.0]]
26 [[`__sparcv8`] [8.0.0]]
30 #define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER_NOT_AVAILABLE
32 #if defined(__sparc__) || defined(__sparc)
33 # undef BOOST_ARCH_SPARC
34 # if !defined(BOOST_ARCH_SPARC) && defined(__sparcv9)
35 # define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(9,0,0)
37 # if !defined(BOOST_ARCH_SPARC) && defined(__sparcv8)
38 # define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(8,0,0)
40 # if !defined(BOOST_ARCH_SPARC)
41 # define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER_AVAILABLE
46 # define BOOST_ARCH_SPARC_AVAILABLE
49 #define BOOST_ARCH_SPARC_NAME "SPARC"
53 #include <boost/predef/detail/test.h>
54 BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_SPARC,BOOST_ARCH_SPARC_NAME)