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_PARISC_H
9 #define BOOST_PREDEF_ARCHITECTURE_PARISC_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
15 [heading `BOOST_ARCH_PARISK`]
17 [@http://en.wikipedia.org/wiki/PA-RISC_family HP/PA RISC] architecture.
20 [[__predef_symbol__] [__predef_version__]]
22 [[`__hppa__`] [__predef_detection__]]
23 [[`__hppa`] [__predef_detection__]]
24 [[`__HPPA__`] [__predef_detection__]]
26 [[`_PA_RISC1_0`] [1.0.0]]
27 [[`_PA_RISC1_1`] [1.1.0]]
28 [[`__HPPA11__`] [1.1.0]]
29 [[`__PA7100__`] [1.1.0]]
30 [[`_PA_RISC2_0`] [2.0.0]]
31 [[`__RISC2_0__`] [2.0.0]]
32 [[`__HPPA20__`] [2.0.0]]
33 [[`__PA8000__`] [2.0.0]]
37 #define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER_NOT_AVAILABLE
39 #if defined(__hppa__) || defined(__hppa) || defined(__HPPA__)
40 # undef BOOST_ARCH_PARISC
41 # if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC1_0))
42 # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(1,0,0)
44 # if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC1_1) || defined(__HPPA11__) || defined(__PA7100__))
45 # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(1,1,0)
47 # if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC2_0) || defined(__RISC2_0__) || defined(__HPPA20__) || defined(__PA8000__))
48 # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(2,0,0)
50 # if !defined(BOOST_ARCH_PARISC)
51 # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER_AVAILABLE
56 # define BOOST_ARCH_PARISC_AVAILABLE
59 #define BOOST_ARCH_PARISC_NAME "HP/PA RISC"
63 #include <boost/predef/detail/test.h>
64 BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_PARISC,BOOST_ARCH_PARISC_NAME)