]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/predef/compiler/ibm.h
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_COMPILER_IBM_H
9 #define BOOST_PREDEF_COMPILER_IBM_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
17 http://en.wikipedia.org/wiki/VisualAge[IBM XL C/{CPP}] compiler.
18 Version number available as major, minor, and patch.
22 | {predef_symbol} | {predef_version}
24 | `+__IBMCPP__+` | {predef_detection}
25 | `+__xlC__+` | {predef_detection}
26 | `+__xlc__+` | {predef_detection}
28 | `+__COMPILER_VER__+` | V.R.P
31 | `+__IBMCPP__+` | V.R.P
33 */ // end::reference[]
35 #define BOOST_COMP_IBM BOOST_VERSION_NUMBER_NOT_AVAILABLE
37 #if defined(__IBMCPP__) || defined(__xlC__) || defined(__xlc__)
38 # if !defined(BOOST_COMP_IBM_DETECTION) && defined(__COMPILER_VER__)
39 # define BOOST_COMP_IBM_DETECTION BOOST_PREDEF_MAKE_0X_VRRPPPP(__COMPILER_VER__)
41 # if !defined(BOOST_COMP_IBM_DETECTION) && defined(__xlC__)
42 # define BOOST_COMP_IBM_DETECTION BOOST_PREDEF_MAKE_0X_VVRR(__xlC__)
44 # if !defined(BOOST_COMP_IBM_DETECTION) && defined(__xlc__)
45 # define BOOST_COMP_IBM_DETECTION BOOST_PREDEF_MAKE_0X_VVRR(__xlc__)
47 # if !defined(BOOST_COMP_IBM_DETECTION)
48 # define BOOST_COMP_IBM_DETECTION BOOST_PREDEF_MAKE_10_VRP(__IBMCPP__)
52 #ifdef BOOST_COMP_IBM_DETECTION
53 # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
54 # define BOOST_COMP_IBM_EMULATED BOOST_COMP_IBM_DETECTION
56 # undef BOOST_COMP_IBM
57 # define BOOST_COMP_IBM BOOST_COMP_IBM_DETECTION
59 # define BOOST_COMP_IBM_AVAILABLE
60 # include <boost/predef/detail/comp_detected.h>
63 #define BOOST_COMP_IBM_NAME "IBM XL C/C++"
67 #include <boost/predef/detail/test.h>
68 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_IBM
,BOOST_COMP_IBM_NAME
)
70 #ifdef BOOST_COMP_IBM_EMULATED
71 #include <boost/predef/detail/test.h>
72 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_IBM_EMULATED
,BOOST_COMP_IBM_NAME
)