Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:05

0001 /*
0002 Copyright Rene Rivera 2008-2015
0003 Distributed under the Boost Software License, Version 1.0.
0004 (See accompanying file LICENSE_1_0.txt or copy at
0005 http://www.boost.org/LICENSE_1_0.txt)
0006 */
0007 
0008 #ifndef BOOST_PREDEF_COMPILER_IBM_H
0009 #define BOOST_PREDEF_COMPILER_IBM_H
0010 
0011 #include <boost/predef/version_number.h>
0012 #include <boost/predef/make.h>
0013 
0014 /* tag::reference[]
0015 = `BOOST_COMP_IBM`
0016 
0017 http://en.wikipedia.org/wiki/VisualAge[IBM XL C/{CPP}] compiler.
0018 Version number available as major, minor, and patch.
0019 
0020 [options="header"]
0021 |===
0022 | {predef_symbol} | {predef_version}
0023 
0024 | `+__IBMCPP__+` | {predef_detection}
0025 | `+__xlC__+` | {predef_detection}
0026 | `+__xlc__+` | {predef_detection}
0027 
0028 | `+__COMPILER_VER__+` | V.R.P
0029 | `+__xlC__+` | V.R.P
0030 | `+__xlc__+` | V.R.P
0031 | `+__IBMCPP__+` | V.R.P
0032 |===
0033 */ // end::reference[]
0034 
0035 #define BOOST_COMP_IBM BOOST_VERSION_NUMBER_NOT_AVAILABLE
0036 
0037 #if defined(__IBMCPP__) || defined(__xlC__) || defined(__xlc__)
0038 #   if !defined(BOOST_COMP_IBM_DETECTION) && defined(__COMPILER_VER__)
0039 #       define BOOST_COMP_IBM_DETECTION BOOST_PREDEF_MAKE_0X_VRRPPPP(__COMPILER_VER__)
0040 #   endif
0041 #   if !defined(BOOST_COMP_IBM_DETECTION) && defined(__xlC__)
0042 #       define BOOST_COMP_IBM_DETECTION BOOST_PREDEF_MAKE_0X_VVRR(__xlC__)
0043 #   endif
0044 #   if !defined(BOOST_COMP_IBM_DETECTION) && defined(__xlc__)
0045 #       define BOOST_COMP_IBM_DETECTION BOOST_PREDEF_MAKE_0X_VVRR(__xlc__)
0046 #   endif
0047 #   if !defined(BOOST_COMP_IBM_DETECTION)
0048 #       define BOOST_COMP_IBM_DETECTION BOOST_PREDEF_MAKE_10_VRP(__IBMCPP__)
0049 #   endif
0050 #endif
0051 
0052 #ifdef BOOST_COMP_IBM_DETECTION
0053 #   if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
0054 #       define BOOST_COMP_IBM_EMULATED BOOST_COMP_IBM_DETECTION
0055 #   else
0056 #       undef BOOST_COMP_IBM
0057 #       define BOOST_COMP_IBM BOOST_COMP_IBM_DETECTION
0058 #   endif
0059 #   define BOOST_COMP_IBM_AVAILABLE
0060 #   include <boost/predef/detail/comp_detected.h>
0061 #endif
0062 
0063 #define BOOST_COMP_IBM_NAME "IBM XL C/C++"
0064 
0065 #endif
0066 
0067 #include <boost/predef/detail/test.h>
0068 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_IBM,BOOST_COMP_IBM_NAME)
0069 
0070 #ifdef BOOST_COMP_IBM_EMULATED
0071 #include <boost/predef/detail/test.h>
0072 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_IBM_EMULATED,BOOST_COMP_IBM_NAME)
0073 #endif