]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /* |
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) | |
6 | */ | |
7 | ||
8 | #ifndef BOOST_PREDEF_ARCHITECTURE_SYS390_H | |
9 | #define BOOST_PREDEF_ARCHITECTURE_SYS390_H | |
10 | ||
11 | #include <boost/predef/version_number.h> | |
12 | #include <boost/predef/make.h> | |
13 | ||
f67539c2 TL |
14 | /* tag::reference[] |
15 | = `BOOST_ARCH_SYS390` | |
7c673cae | 16 | |
f67539c2 | 17 | http://en.wikipedia.org/wiki/System/390[System/390] architecture. |
7c673cae | 18 | |
f67539c2 TL |
19 | [options="header"] |
20 | |=== | |
21 | | {predef_symbol} | {predef_version} | |
7c673cae | 22 | |
f67539c2 TL |
23 | | `+__s390__+` | {predef_detection} |
24 | | `+__s390x__+` | {predef_detection} | |
25 | |=== | |
26 | */ // end::reference[] | |
7c673cae FG |
27 | |
28 | #define BOOST_ARCH_SYS390 BOOST_VERSION_NUMBER_NOT_AVAILABLE | |
29 | ||
30 | #if defined(__s390__) || defined(__s390x__) | |
31 | # undef BOOST_ARCH_SYS390 | |
32 | # define BOOST_ARCH_SYS390 BOOST_VERSION_NUMBER_AVAILABLE | |
33 | #endif | |
34 | ||
35 | #if BOOST_ARCH_SYS390 | |
36 | # define BOOST_ARCH_SYS390_AVAILABLE | |
37 | #endif | |
38 | ||
1e59de90 TL |
39 | #if BOOST_ARCH_SYS390 |
40 | # undef BOOST_ARCH_WORD_BITS_32 | |
41 | # define BOOST_ARCH_WORD_BITS_32 BOOST_VERSION_NUMBER_AVAILABLE | |
42 | #endif | |
43 | ||
7c673cae FG |
44 | #define BOOST_ARCH_SYS390_NAME "System/390" |
45 | ||
46 | #endif | |
47 | ||
48 | #include <boost/predef/detail/test.h> | |
49 | BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_SYS390,BOOST_ARCH_SYS390_NAME) |