整理
This commit is contained in:
64
include/boost/predef/compiler/borland.h
Normal file
64
include/boost/predef/compiler/borland.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_BORLAND_H
|
||||
#define BOOST_PREDEF_COMPILER_BORLAND_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_BORLAND`
|
||||
|
||||
http://en.wikipedia.org/wiki/C_plus_plus_builder[Borland {CPP}] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__BORLANDC__+` | {predef_detection}
|
||||
| `+__CODEGEARC__+` | {predef_detection}
|
||||
|
||||
| `+__BORLANDC__+` | V.R.P
|
||||
| `+__CODEGEARC__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_BORLAND BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__BORLANDC__) || defined(__CODEGEARC__)
|
||||
# if !defined(BOOST_COMP_BORLAND_DETECTION) && (defined(__CODEGEARC__))
|
||||
# define BOOST_COMP_BORLAND_DETECTION BOOST_PREDEF_MAKE_0X_VVRP(__CODEGEARC__)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_BORLAND_DETECTION)
|
||||
# define BOOST_COMP_BORLAND_DETECTION BOOST_PREDEF_MAKE_0X_VVRP(__BORLANDC__)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_BORLAND_DETECTION
|
||||
# define BOOST_COMP_BORLAND_AVAILABLE
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_BORLAND_EMULATED BOOST_COMP_BORLAND_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_BORLAND
|
||||
# define BOOST_COMP_BORLAND BOOST_COMP_BORLAND_DETECTION
|
||||
# endif
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_BORLAND_NAME "Borland C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_BORLAND,BOOST_COMP_BORLAND_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_BORLAND_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_BORLAND_EMULATED,BOOST_COMP_BORLAND_NAME)
|
||||
#endif
|
||||
57
include/boost/predef/compiler/clang.h
Normal file
57
include/boost/predef/compiler/clang.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_CLANG_H
|
||||
#define BOOST_PREDEF_COMPILER_CLANG_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_CLANG`
|
||||
|
||||
http://en.wikipedia.org/wiki/Clang[Clang] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__clang__+` | {predef_detection}
|
||||
|
||||
| `+__clang_major__+`, `+__clang_minor__+`, `+__clang_patchlevel__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_CLANG BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__clang__)
|
||||
# define BOOST_COMP_CLANG_DETECTION BOOST_VERSION_NUMBER(__clang_major__,__clang_minor__,__clang_patchlevel__)
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_CLANG_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_CLANG_EMULATED BOOST_COMP_CLANG_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_CLANG
|
||||
# define BOOST_COMP_CLANG BOOST_COMP_CLANG_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_CLANG_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_CLANG_NAME "Clang"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_CLANG,BOOST_COMP_CLANG_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_CLANG_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_CLANG_EMULATED,BOOST_COMP_CLANG_NAME)
|
||||
#endif
|
||||
62
include/boost/predef/compiler/comeau.h
Normal file
62
include/boost/predef/compiler/comeau.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_COMEAU_H
|
||||
#define BOOST_PREDEF_COMPILER_COMEAU_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
#define BOOST_COMP_COMO BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_COMO`
|
||||
|
||||
http://en.wikipedia.org/wiki/Comeau_C/C%2B%2B[Comeau {CPP}] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__COMO__+` | {predef_detection}
|
||||
|
||||
| `+__COMO_VERSION__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#if defined(__COMO__)
|
||||
# if !defined(BOOST_COMP_COMO_DETECTION) && defined(__COMO_VERSION__)
|
||||
# define BOOST_COMP_COMO_DETECTION BOOST_PREDEF_MAKE_0X_VRP(__COMO_VERSION__)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_COMO_DETECTION)
|
||||
# define BOOST_COMP_COMO_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_COMO_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_COMO_EMULATED BOOST_COMP_COMO_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_COMO
|
||||
# define BOOST_COMP_COMO BOOST_COMP_COMO_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_COMO_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_COMO_NAME "Comeau C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_COMO,BOOST_COMP_COMO_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_COMO_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_COMO_EMULATED,BOOST_COMP_COMO_NAME)
|
||||
#endif
|
||||
67
include/boost/predef/compiler/compaq.h
Normal file
67
include/boost/predef/compiler/compaq.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_COMPAQ_H
|
||||
#define BOOST_PREDEF_COMPILER_COMPAQ_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_DEC`
|
||||
|
||||
http://www.openvms.compaq.com/openvms/brochures/deccplus/[Compaq C/{CPP}] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__DECCXX+` | {predef_detection}
|
||||
| `+__DECC+` | {predef_detection}
|
||||
|
||||
| `+__DECCXX_VER+` | V.R.P
|
||||
| `+__DECC_VER+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_DEC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__DECC) || defined(__DECCXX)
|
||||
# if !defined(BOOST_COMP_DEC_DETECTION) && defined(__DECCXX_VER)
|
||||
# define BOOST_COMP_DEC_DETECTION BOOST_PREDEF_MAKE_10_VVRR0PP00(__DECCXX_VER)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_DEC_DETECTION) && defined(__DECC_VER)
|
||||
# define BOOST_COMP_DEC_DETECTION BOOST_PREDEF_MAKE_10_VVRR0PP00(__DECC_VER)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_DEC_DETECTION)
|
||||
# define BOOST_COMP_DEC_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_DEC_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_DEC_EMULATED BOOST_COMP_DEC_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_DEC
|
||||
# define BOOST_COMP_DEC BOOST_COMP_DEC_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_DEC_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_DEC_NAME "Compaq C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_DEC,BOOST_COMP_DEC_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_DEC_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_DEC_EMULATED,BOOST_COMP_DEC_NAME)
|
||||
#endif
|
||||
57
include/boost/predef/compiler/diab.h
Normal file
57
include/boost/predef/compiler/diab.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_DIAB_H
|
||||
#define BOOST_PREDEF_COMPILER_DIAB_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_DIAB`
|
||||
|
||||
http://www.windriver.com/products/development_suite/wind_river_compiler/[Diab C/{CPP}] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__DCC__+` | {predef_detection}
|
||||
|
||||
| `+__VERSION_NUMBER__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_DIAB BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__DCC__)
|
||||
# define BOOST_COMP_DIAB_DETECTION BOOST_PREDEF_MAKE_10_VRPP(__VERSION_NUMBER__)
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_DIAB_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_DIAB_EMULATED BOOST_COMP_DIAB_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_DIAB
|
||||
# define BOOST_COMP_DIAB BOOST_COMP_DIAB_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_DIAB_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_DIAB_NAME "Diab C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_DIAB,BOOST_COMP_DIAB_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_DIAB_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_DIAB_EMULATED,BOOST_COMP_DIAB_NAME)
|
||||
#endif
|
||||
57
include/boost/predef/compiler/digitalmars.h
Normal file
57
include/boost/predef/compiler/digitalmars.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_DIGITALMARS_H
|
||||
#define BOOST_PREDEF_COMPILER_DIGITALMARS_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_DMC`
|
||||
|
||||
http://en.wikipedia.org/wiki/Digital_Mars[Digital Mars] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__DMC__+` | {predef_detection}
|
||||
|
||||
| `+__DMC__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_DMC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__DMC__)
|
||||
# define BOOST_COMP_DMC_DETECTION BOOST_PREDEF_MAKE_0X_VRP(__DMC__)
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_DMC_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_DMC_EMULATED BOOST_COMP_DMC_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_DMC
|
||||
# define BOOST_COMP_DMC BOOST_COMP_DMC_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_DMC_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_DMC_NAME "Digital Mars"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_DMC,BOOST_COMP_DMC_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_DMC_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_DMC_EMULATED,BOOST_COMP_DMC_NAME)
|
||||
#endif
|
||||
57
include/boost/predef/compiler/dignus.h
Normal file
57
include/boost/predef/compiler/dignus.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_DIGNUS_H
|
||||
#define BOOST_PREDEF_COMPILER_DIGNUS_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_SYSC`
|
||||
|
||||
http://www.dignus.com/dcxx/[Dignus Systems/{CPP}] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__SYSC__+` | {predef_detection}
|
||||
|
||||
| `+__SYSC_VER__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_SYSC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__SYSC__)
|
||||
# define BOOST_COMP_SYSC_DETECTION BOOST_PREDEF_MAKE_10_VRRPP(__SYSC_VER__)
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_SYSC_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_SYSC_EMULATED BOOST_COMP_SYSC_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_SYSC
|
||||
# define BOOST_COMP_SYSC BOOST_COMP_SYSC_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_SYSC_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_SYSC_NAME "Dignus Systems/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_SYSC,BOOST_COMP_SYSC_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_SYSC_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_SYSC_EMULATED,BOOST_COMP_SYSC_NAME)
|
||||
#endif
|
||||
57
include/boost/predef/compiler/edg.h
Normal file
57
include/boost/predef/compiler/edg.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_EDG_H
|
||||
#define BOOST_PREDEF_COMPILER_EDG_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_EDG`
|
||||
|
||||
http://en.wikipedia.org/wiki/Edison_Design_Group[EDG {CPP} Frontend] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__EDG__+` | {predef_detection}
|
||||
|
||||
| `+__EDG_VERSION__+` | V.R.0
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_EDG BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__EDG__)
|
||||
# define BOOST_COMP_EDG_DETECTION BOOST_PREDEF_MAKE_10_VRR(__EDG_VERSION__)
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_EDG_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_EDG_EMULATED BOOST_COMP_EDG_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_EDG
|
||||
# define BOOST_COMP_EDG BOOST_COMP_EDG_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_EDG_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_EDG_NAME "EDG C++ Frontend"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_EDG,BOOST_COMP_EDG_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_EDG_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_EDG_EMULATED,BOOST_COMP_EDG_NAME)
|
||||
#endif
|
||||
58
include/boost/predef/compiler/ekopath.h
Normal file
58
include/boost/predef/compiler/ekopath.h
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_EKOPATH_H
|
||||
#define BOOST_PREDEF_COMPILER_EKOPATH_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_PATH`
|
||||
|
||||
http://en.wikipedia.org/wiki/PathScale[EKOpath] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__PATHCC__+` | {predef_detection}
|
||||
|
||||
| `+__PATHCC__+`, `+__PATHCC_MINOR__+`, `+__PATHCC_PATCHLEVEL__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_PATH BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__PATHCC__)
|
||||
# define BOOST_COMP_PATH_DETECTION \
|
||||
BOOST_VERSION_NUMBER(__PATHCC__,__PATHCC_MINOR__,__PATHCC_PATCHLEVEL__)
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_PATH_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_PATH_EMULATED BOOST_COMP_PATH_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_PATH
|
||||
# define BOOST_COMP_PATH BOOST_COMP_PATH_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_PATH_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_PATH_NAME "EKOpath"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PATH,BOOST_COMP_PATH_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_PATH_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PATH_EMULATED,BOOST_COMP_PATH_NAME)
|
||||
#endif
|
||||
69
include/boost/predef/compiler/gcc.h
Normal file
69
include/boost/predef/compiler/gcc.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_GCC_H
|
||||
#define BOOST_PREDEF_COMPILER_GCC_H
|
||||
|
||||
/* Other compilers that emulate this one need to be detected first. */
|
||||
|
||||
#include <boost/predef/compiler/clang.h>
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_GNUC`
|
||||
|
||||
http://en.wikipedia.org/wiki/GNU_Compiler_Collection[Gnu GCC C/{CPP}] compiler.
|
||||
Version number available as major, minor, and patch (if available).
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__GNUC__+` | {predef_detection}
|
||||
|
||||
| `+__GNUC__+`, `+__GNUC_MINOR__+`, `+__GNUC_PATCHLEVEL__+` | V.R.P
|
||||
| `+__GNUC__+`, `+__GNUC_MINOR__+` | V.R.0
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_GNUC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__GNUC__)
|
||||
# if !defined(BOOST_COMP_GNUC_DETECTION) && defined(__GNUC_PATCHLEVEL__)
|
||||
# define BOOST_COMP_GNUC_DETECTION \
|
||||
BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_GNUC_DETECTION)
|
||||
# define BOOST_COMP_GNUC_DETECTION \
|
||||
BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,0)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_GNUC_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_GNUC_EMULATED BOOST_COMP_GNUC_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_GNUC
|
||||
# define BOOST_COMP_GNUC BOOST_COMP_GNUC_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_GNUC_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_GNUC_NAME "Gnu GCC C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GNUC,BOOST_COMP_GNUC_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_GNUC_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GNUC_EMULATED,BOOST_COMP_GNUC_NAME)
|
||||
#endif
|
||||
54
include/boost/predef/compiler/gcc_xml.h
Normal file
54
include/boost/predef/compiler/gcc_xml.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_GCC_XML_H
|
||||
#define BOOST_PREDEF_COMPILER_GCC_XML_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_GCCXML`
|
||||
|
||||
http://www.gccxml.org/[GCC XML] compiler.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__GCCXML__+` | {predef_detection}
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_GCCXML BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__GCCXML__)
|
||||
# define BOOST_COMP_GCCXML_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_GCCXML_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_GCCXML_EMULATED BOOST_COMP_GCCXML_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_GCCXML
|
||||
# define BOOST_COMP_GCCXML BOOST_COMP_GCCXML_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_GCCXML_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_GCCXML_NAME "GCC XML"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GCCXML,BOOST_COMP_GCCXML_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_GCCXML_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GCCXML_EMULATED,BOOST_COMP_GCCXML_NAME)
|
||||
#endif
|
||||
67
include/boost/predef/compiler/greenhills.h
Normal file
67
include/boost/predef/compiler/greenhills.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_GREENHILLS_H
|
||||
#define BOOST_PREDEF_COMPILER_GREENHILLS_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_GHS`
|
||||
|
||||
http://en.wikipedia.org/wiki/Green_Hills_Software[Green Hills C/{CPP}] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__ghs+` | {predef_detection}
|
||||
| `+__ghs__+` | {predef_detection}
|
||||
|
||||
| `+__GHS_VERSION_NUMBER__+` | V.R.P
|
||||
| `+__ghs+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_GHS BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__ghs) || defined(__ghs__)
|
||||
# if !defined(BOOST_COMP_GHS_DETECTION) && defined(__GHS_VERSION_NUMBER__)
|
||||
# define BOOST_COMP_GHS_DETECTION BOOST_PREDEF_MAKE_10_VRP(__GHS_VERSION_NUMBER__)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_GHS_DETECTION) && defined(__ghs)
|
||||
# define BOOST_COMP_GHS_DETECTION BOOST_PREDEF_MAKE_10_VRP(__ghs)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_GHS_DETECTION)
|
||||
# define BOOST_COMP_GHS_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_GHS_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_GHS_EMULATED BOOST_COMP_GHS_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_GHS
|
||||
# define BOOST_COMP_GHS BOOST_COMP_GHS_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_GHS_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_GHS_NAME "Green Hills C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GHS,BOOST_COMP_GHS_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_GHS_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GHS_EMULATED,BOOST_COMP_GHS_NAME)
|
||||
#endif
|
||||
62
include/boost/predef/compiler/hp_acc.h
Normal file
62
include/boost/predef/compiler/hp_acc.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_HP_ACC_H
|
||||
#define BOOST_PREDEF_COMPILER_HP_ACC_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_HPACC`
|
||||
|
||||
HP a{CPP} compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__HP_aCC+` | {predef_detection}
|
||||
|
||||
| `+__HP_aCC+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_HPACC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__HP_aCC)
|
||||
# if !defined(BOOST_COMP_HPACC_DETECTION) && (__HP_aCC > 1)
|
||||
# define BOOST_COMP_HPACC_DETECTION BOOST_PREDEF_MAKE_10_VVRRPP(__HP_aCC)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_HPACC_DETECTION)
|
||||
# define BOOST_COMP_HPACC_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_HPACC_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_HPACC_EMULATED BOOST_COMP_HPACC_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_HPACC
|
||||
# define BOOST_COMP_HPACC BOOST_COMP_HPACC_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_HPACC_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_HPACC_NAME "HP aC++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_HPACC,BOOST_COMP_HPACC_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_HPACC_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_HPACC_EMULATED,BOOST_COMP_HPACC_NAME)
|
||||
#endif
|
||||
57
include/boost/predef/compiler/iar.h
Normal file
57
include/boost/predef/compiler/iar.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_IAR_H
|
||||
#define BOOST_PREDEF_COMPILER_IAR_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_IAR`
|
||||
|
||||
IAR C/{CPP} compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__IAR_SYSTEMS_ICC__+` | {predef_detection}
|
||||
|
||||
| `+__VER__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_IAR BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__IAR_SYSTEMS_ICC__)
|
||||
# define BOOST_COMP_IAR_DETECTION BOOST_PREDEF_MAKE_10_VVRR(__VER__)
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_IAR_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_IAR_EMULATED BOOST_COMP_IAR_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_IAR
|
||||
# define BOOST_COMP_IAR BOOST_COMP_IAR_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_IAR_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_IAR_NAME "IAR C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_IAR,BOOST_COMP_IAR_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_IAR_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_IAR_EMULATED,BOOST_COMP_IAR_NAME)
|
||||
#endif
|
||||
73
include/boost/predef/compiler/ibm.h
Normal file
73
include/boost/predef/compiler/ibm.h
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_IBM_H
|
||||
#define BOOST_PREDEF_COMPILER_IBM_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_IBM`
|
||||
|
||||
http://en.wikipedia.org/wiki/VisualAge[IBM XL C/{CPP}] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__IBMCPP__+` | {predef_detection}
|
||||
| `+__xlC__+` | {predef_detection}
|
||||
| `+__xlc__+` | {predef_detection}
|
||||
|
||||
| `+__COMPILER_VER__+` | V.R.P
|
||||
| `+__xlC__+` | V.R.P
|
||||
| `+__xlc__+` | V.R.P
|
||||
| `+__IBMCPP__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_IBM BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__IBMCPP__) || defined(__xlC__) || defined(__xlc__)
|
||||
# if !defined(BOOST_COMP_IBM_DETECTION) && defined(__COMPILER_VER__)
|
||||
# define BOOST_COMP_IBM_DETECTION BOOST_PREDEF_MAKE_0X_VRRPPPP(__COMPILER_VER__)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_IBM_DETECTION) && defined(__xlC__)
|
||||
# define BOOST_COMP_IBM_DETECTION BOOST_PREDEF_MAKE_0X_VVRR(__xlC__)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_IBM_DETECTION) && defined(__xlc__)
|
||||
# define BOOST_COMP_IBM_DETECTION BOOST_PREDEF_MAKE_0X_VVRR(__xlc__)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_IBM_DETECTION)
|
||||
# define BOOST_COMP_IBM_DETECTION BOOST_PREDEF_MAKE_10_VRP(__IBMCPP__)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_IBM_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_IBM_EMULATED BOOST_COMP_IBM_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_IBM
|
||||
# define BOOST_COMP_IBM BOOST_COMP_IBM_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_IBM_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_IBM_NAME "IBM XL C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_IBM,BOOST_COMP_IBM_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_IBM_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_IBM_EMULATED,BOOST_COMP_IBM_NAME)
|
||||
#endif
|
||||
80
include/boost/predef/compiler/intel.h
Normal file
80
include/boost/predef/compiler/intel.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2017
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_INTEL_H
|
||||
#define BOOST_PREDEF_COMPILER_INTEL_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_INTEL`
|
||||
|
||||
http://en.wikipedia.org/wiki/Intel_C%2B%2B[Intel C/{CPP}] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__INTEL_COMPILER+` | {predef_detection}
|
||||
| `+__ICL+` | {predef_detection}
|
||||
| `+__ICC+` | {predef_detection}
|
||||
| `+__ECC+` | {predef_detection}
|
||||
|
||||
| `+__INTEL_COMPILER+` | V.R
|
||||
| `+__INTEL_COMPILER+` and `+__INTEL_COMPILER_UPDATE+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_INTEL BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || \
|
||||
defined(__ECC)
|
||||
/* tag::reference[]
|
||||
NOTE: Because of an Intel mistake in the release version numbering when
|
||||
`__INTEL_COMPILER` is `9999` it is detected as version 12.1.0.
|
||||
*/ // end::reference[]
|
||||
# if !defined(BOOST_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER) && (__INTEL_COMPILER == 9999)
|
||||
# define BOOST_COMP_INTEL_DETECTION BOOST_VERSION_NUMBER(12,1,0)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE)
|
||||
# define BOOST_COMP_INTEL_DETECTION BOOST_VERSION_NUMBER( \
|
||||
BOOST_VERSION_NUMBER_MAJOR(BOOST_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)), \
|
||||
BOOST_VERSION_NUMBER_MINOR(BOOST_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)), \
|
||||
__INTEL_COMPILER_UPDATE)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER)
|
||||
# define BOOST_COMP_INTEL_DETECTION BOOST_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_INTEL_DETECTION)
|
||||
# define BOOST_COMP_INTEL_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_INTEL_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_INTEL_EMULATED BOOST_COMP_INTEL_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_INTEL
|
||||
# define BOOST_COMP_INTEL BOOST_COMP_INTEL_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_INTEL_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_INTEL_NAME "Intel C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_INTEL,BOOST_COMP_INTEL_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_INTEL_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_INTEL_EMULATED,BOOST_COMP_INTEL_NAME)
|
||||
#endif
|
||||
57
include/boost/predef/compiler/kai.h
Normal file
57
include/boost/predef/compiler/kai.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_KAI_H
|
||||
#define BOOST_PREDEF_COMPILER_KAI_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_KCC`
|
||||
|
||||
Kai {CPP} compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__KCC+` | {predef_detection}
|
||||
|
||||
| `+__KCC_VERSION+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_KCC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__KCC)
|
||||
# define BOOST_COMP_KCC_DETECTION BOOST_PREDEF_MAKE_0X_VRPP(__KCC_VERSION)
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_KCC_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_KCC_EMULATED BOOST_COMP_KCC_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_KCC
|
||||
# define BOOST_COMP_KCC BOOST_COMP_KCC_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_KCC_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_KCC_NAME "Kai C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_KCC,BOOST_COMP_KCC_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_KCC_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_KCC_EMULATED,BOOST_COMP_KCC_NAME)
|
||||
#endif
|
||||
58
include/boost/predef/compiler/llvm.h
Normal file
58
include/boost/predef/compiler/llvm.h
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_LLVM_H
|
||||
#define BOOST_PREDEF_COMPILER_LLVM_H
|
||||
|
||||
/* Other compilers that emulate this one need to be detected first. */
|
||||
|
||||
#include <boost/predef/compiler/clang.h>
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_LLVM`
|
||||
|
||||
http://en.wikipedia.org/wiki/LLVM[LLVM] compiler.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__llvm__+` | {predef_detection}
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_LLVM BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__llvm__)
|
||||
# define BOOST_COMP_LLVM_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_LLVM_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_LLVM_EMULATED BOOST_COMP_LLVM_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_LLVM
|
||||
# define BOOST_COMP_LLVM BOOST_COMP_LLVM_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_LLVM_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_LLVM_NAME "LLVM"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_LLVM,BOOST_COMP_LLVM_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_LLVM_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_LLVM_EMULATED,BOOST_COMP_LLVM_NAME)
|
||||
#endif
|
||||
54
include/boost/predef/compiler/metaware.h
Normal file
54
include/boost/predef/compiler/metaware.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_METAWARE_H
|
||||
#define BOOST_PREDEF_COMPILER_METAWARE_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_HIGHC`
|
||||
|
||||
MetaWare High C/{CPP} compiler.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__HIGHC__+` | {predef_detection}
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_HIGHC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__HIGHC__)
|
||||
# define BOOST_COMP_HIGHC_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_HIGHC_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_HIGHC_EMULATED BOOST_COMP_HIGHC_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_HIGHC
|
||||
# define BOOST_COMP_HIGHC BOOST_COMP_HIGHC_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_HIGHC_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_HIGHC_NAME "MetaWare High C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_HIGHC,BOOST_COMP_HIGHC_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_HIGHC_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_HIGHC_EMULATED,BOOST_COMP_HIGHC_NAME)
|
||||
#endif
|
||||
78
include/boost/predef/compiler/metrowerks.h
Normal file
78
include/boost/predef/compiler/metrowerks.h
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_METROWERKS_H
|
||||
#define BOOST_PREDEF_COMPILER_METROWERKS_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_MWERKS`
|
||||
|
||||
http://en.wikipedia.org/wiki/CodeWarrior[Metrowerks CodeWarrior] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__MWERKS__+` | {predef_detection}
|
||||
| `+__CWCC__+` | {predef_detection}
|
||||
|
||||
| `+__CWCC__+` | V.R.P
|
||||
| `+__MWERKS__+` | V.R.P >= 4.2.0
|
||||
| `+__MWERKS__+` | 9.R.0
|
||||
| `+__MWERKS__+` | 8.R.0
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_MWERKS BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__MWERKS__) || defined(__CWCC__)
|
||||
# if !defined(BOOST_COMP_MWERKS_DETECTION) && defined(__CWCC__)
|
||||
# define BOOST_COMP_MWERKS_DETECTION BOOST_PREDEF_MAKE_0X_VRPP(__CWCC__)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x4200)
|
||||
# define BOOST_COMP_MWERKS_DETECTION BOOST_PREDEF_MAKE_0X_VRPP(__MWERKS__)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3204) // note the "skip": 04->9.3
|
||||
# define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER(9,(__MWERKS__)%100-1,0)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3200)
|
||||
# define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER(9,(__MWERKS__)%100,0)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3000)
|
||||
# define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER(8,(__MWERKS__)%100,0)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_MWERKS_DETECTION)
|
||||
# define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_MWERKS_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_MWERKS_EMULATED BOOST_COMP_MWERKS_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_MWERKS
|
||||
# define BOOST_COMP_MWERKS BOOST_COMP_MWERKS_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_MWERKS_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_MWERKS_NAME "Metrowerks CodeWarrior"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MWERKS,BOOST_COMP_MWERKS_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_MWERKS_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MWERKS_EMULATED,BOOST_COMP_MWERKS_NAME)
|
||||
#endif
|
||||
54
include/boost/predef/compiler/microtec.h
Normal file
54
include/boost/predef/compiler/microtec.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_MICROTEC_H
|
||||
#define BOOST_PREDEF_COMPILER_MICROTEC_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_MRI`
|
||||
|
||||
http://www.mentor.com/microtec/[Microtec C/{CPP}] compiler.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+_MRI+` | {predef_detection}
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_MRI BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(_MRI)
|
||||
# define BOOST_COMP_MRI_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_MRI_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_MRI_EMULATED BOOST_COMP_MRI_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_MRI
|
||||
# define BOOST_COMP_MRI BOOST_COMP_MRI_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_MRI_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_MRI_NAME "Microtec C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MRI,BOOST_COMP_MRI_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_MRI_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MRI_EMULATED,BOOST_COMP_MRI_NAME)
|
||||
#endif
|
||||
64
include/boost/predef/compiler/mpw.h
Normal file
64
include/boost/predef/compiler/mpw.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_MPW_H
|
||||
#define BOOST_PREDEF_COMPILER_MPW_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_MPW`
|
||||
|
||||
http://en.wikipedia.org/wiki/Macintosh_Programmer%27s_Workshop[MPW {CPP}] compiler.
|
||||
Version number available as major, and minor.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__MRC__+` | {predef_detection}
|
||||
| `MPW_C` | {predef_detection}
|
||||
| `MPW_CPLUS` | {predef_detection}
|
||||
|
||||
| `+__MRC__+` | V.R.0
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_MPW BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS)
|
||||
# if !defined(BOOST_COMP_MPW_DETECTION) && defined(__MRC__)
|
||||
# define BOOST_COMP_MPW_DETECTION BOOST_PREDEF_MAKE_0X_VVRR(__MRC__)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_MPW_DETECTION)
|
||||
# define BOOST_COMP_MPW_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_MPW_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_MPW_EMULATED BOOST_COMP_MPW_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_MPW
|
||||
# define BOOST_COMP_MPW BOOST_COMP_MPW_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_MPW_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_MPW_NAME "MPW C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MPW,BOOST_COMP_MPW_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_MPW_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MPW_EMULATED,BOOST_COMP_MPW_NAME)
|
||||
#endif
|
||||
74
include/boost/predef/compiler/nvcc.h
Normal file
74
include/boost/predef/compiler/nvcc.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
Copyright Benjamin Worpitz 2018
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_NVCC_H
|
||||
#define BOOST_PREDEF_COMPILER_NVCC_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_NVCC`
|
||||
|
||||
https://en.wikipedia.org/wiki/NVIDIA_CUDA_Compiler[NVCC] compiler.
|
||||
Version number available as major, minor, and patch beginning with version 7.5.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__NVCC__+` | {predef_detection}
|
||||
|
||||
| `+__CUDACC_VER_MAJOR__+`, `+__CUDACC_VER_MINOR__+`, `+__CUDACC_VER_BUILD__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_NVCC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__NVCC__)
|
||||
# if !defined(__CUDACC_VER_MAJOR__) || !defined(__CUDACC_VER_MINOR__) || !defined(__CUDACC_VER_BUILD__)
|
||||
# define BOOST_COMP_NVCC_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# else
|
||||
# define BOOST_COMP_NVCC_DETECTION BOOST_VERSION_NUMBER(__CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, __CUDACC_VER_BUILD__)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_NVCC_DETECTION
|
||||
/*
|
||||
Always define BOOST_COMP_NVCC instead of BOOST_COMP_NVCC_EMULATED
|
||||
The nvcc compilation process is somewhat special as can be read here:
|
||||
https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#cuda-compilation-trajectory
|
||||
The nvcc compiler precompiles the input two times. Once for the device code
|
||||
being compiled by the cicc device compiler and once for the host code
|
||||
compiled by the real host compiler. NVCC uses gcc/clang/msvc/...
|
||||
depending on the host compiler being set on the command line.
|
||||
|
||||
Predef (as a preprocessor only lib) detects the one doing the preprocessing
|
||||
as compiler and expects it to be the one doing the real compilation.
|
||||
This is not true for NVCC which is only doing the preprocessing and which
|
||||
is using another compiler for parts of its work. So for NVCC it should be
|
||||
allowed to set BOOST_COMP_NVCC additionally to the already detected host
|
||||
compiler because both is true: It is gcc/clang/... compiling the code, but it
|
||||
is also NVCC doing the preprocessing and adding some other quirks you may
|
||||
want to detect.
|
||||
|
||||
This behavior is similar to what boost config is doing in `select_compiler_config.hpp`.
|
||||
There the NVCC detection is not handled as a real compiler (part of the
|
||||
#if-#elif) but as additional option before the real compiler.
|
||||
*/
|
||||
# undef BOOST_COMP_NVCC
|
||||
# define BOOST_COMP_NVCC BOOST_COMP_NVCC_DETECTION
|
||||
# define BOOST_COMP_NVCC_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_NVCC_NAME "NVCC"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_NVCC,BOOST_COMP_NVCC_NAME)
|
||||
57
include/boost/predef/compiler/palm.h
Normal file
57
include/boost/predef/compiler/palm.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_PALM_H
|
||||
#define BOOST_PREDEF_COMPILER_PALM_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_PALM`
|
||||
|
||||
Palm C/{CPP} compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+_PACC_VER+` | {predef_detection}
|
||||
|
||||
| `+_PACC_VER+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_PALM BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(_PACC_VER)
|
||||
# define BOOST_COMP_PALM_DETECTION BOOST_PREDEF_MAKE_0X_VRRPP000(_PACC_VER)
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_PALM_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_PALM_EMULATED BOOST_COMP_PALM_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_PALM
|
||||
# define BOOST_COMP_PALM BOOST_COMP_PALM_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_PALM_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_PALM_NAME "Palm C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PALM,BOOST_COMP_PALM_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_PALM_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PALM_EMULATED,BOOST_COMP_PALM_NAME)
|
||||
#endif
|
||||
61
include/boost/predef/compiler/pgi.h
Normal file
61
include/boost/predef/compiler/pgi.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_PGI_H
|
||||
#define BOOST_PREDEF_COMPILER_PGI_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_PGI`
|
||||
|
||||
http://en.wikipedia.org/wiki/The_Portland_Group[Portland Group C/{CPP}] compiler.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__PGI+` | {predef_detection}
|
||||
|
||||
| `+__PGIC__+`, `+__PGIC_MINOR__+`, `+__PGIC_PATCHLEVEL__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_PGI BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__PGI)
|
||||
# if !defined(BOOST_COMP_PGI_DETECTION) && (defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__))
|
||||
# define BOOST_COMP_PGI_DETECTION BOOST_VERSION_NUMBER(__PGIC__,__PGIC_MINOR__,__PGIC_PATCHLEVEL__)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_PGI_DETECTION)
|
||||
# define BOOST_COMP_PGI_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_PGI_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_PGI_EMULATED BOOST_COMP_PGI_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_PGI
|
||||
# define BOOST_COMP_PGI BOOST_COMP_PGI_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_PGI_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_PGI_NAME "Portland Group C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PGI,BOOST_COMP_PGI_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_PGI_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PGI_EMULATED,BOOST_COMP_PGI_NAME)
|
||||
#endif
|
||||
67
include/boost/predef/compiler/sgi_mipspro.h
Normal file
67
include/boost/predef/compiler/sgi_mipspro.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_SGI_MIPSPRO_H
|
||||
#define BOOST_PREDEF_COMPILER_SGI_MIPSPRO_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_SGI`
|
||||
|
||||
http://en.wikipedia.org/wiki/MIPSpro[SGI MIPSpro] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__sgi+` | {predef_detection}
|
||||
| `sgi` | {predef_detection}
|
||||
|
||||
| `+_SGI_COMPILER_VERSION+` | V.R.P
|
||||
| `+_COMPILER_VERSION+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_SGI BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__sgi) || defined(sgi)
|
||||
# if !defined(BOOST_COMP_SGI_DETECTION) && defined(_SGI_COMPILER_VERSION)
|
||||
# define BOOST_COMP_SGI_DETECTION BOOST_PREDEF_MAKE_10_VRP(_SGI_COMPILER_VERSION)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_SGI_DETECTION) && defined(_COMPILER_VERSION)
|
||||
# define BOOST_COMP_SGI_DETECTION BOOST_PREDEF_MAKE_10_VRP(_COMPILER_VERSION)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_SGI_DETECTION)
|
||||
# define BOOST_COMP_SGI_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_SGI_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_SGI_EMULATED BOOST_COMP_SGI_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_SGI
|
||||
# define BOOST_COMP_SGI BOOST_COMP_SGI_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_SGI_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_SGI_NAME "SGI MIPSpro"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_SGI,BOOST_COMP_SGI_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_SGI_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_SGI_EMULATED,BOOST_COMP_SGI_NAME)
|
||||
#endif
|
||||
77
include/boost/predef/compiler/sunpro.h
Normal file
77
include/boost/predef/compiler/sunpro.h
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_SUNPRO_H
|
||||
#define BOOST_PREDEF_COMPILER_SUNPRO_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_SUNPRO`
|
||||
|
||||
http://en.wikipedia.org/wiki/Oracle_Solaris_Studio[Oracle Solaris Studio] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__SUNPRO_CC+` | {predef_detection}
|
||||
| `+__SUNPRO_C+` | {predef_detection}
|
||||
|
||||
| `+__SUNPRO_CC+` | V.R.P
|
||||
| `+__SUNPRO_C+` | V.R.P
|
||||
| `+__SUNPRO_CC+` | VV.RR.P
|
||||
| `+__SUNPRO_C+` | VV.RR.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_SUNPRO BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__SUNPRO_CC) || defined(__SUNPRO_C)
|
||||
# if !defined(BOOST_COMP_SUNPRO_DETECTION) && defined(__SUNPRO_CC)
|
||||
# if (__SUNPRO_CC < 0x5100)
|
||||
# define BOOST_COMP_SUNPRO_DETECTION BOOST_PREDEF_MAKE_0X_VRP(__SUNPRO_CC)
|
||||
# else
|
||||
# define BOOST_COMP_SUNPRO_DETECTION BOOST_PREDEF_MAKE_0X_VVRRP(__SUNPRO_CC)
|
||||
# endif
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_SUNPRO_DETECTION) && defined(__SUNPRO_C)
|
||||
# if (__SUNPRO_C < 0x5100)
|
||||
# define BOOST_COMP_SUNPRO_DETECTION BOOST_PREDEF_MAKE_0X_VRP(__SUNPRO_C)
|
||||
# else
|
||||
# define BOOST_COMP_SUNPRO_DETECTION BOOST_PREDEF_MAKE_0X_VVRRP(__SUNPRO_C)
|
||||
# endif
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_SUNPRO_DETECTION)
|
||||
# define BOOST_COMP_SUNPRO_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_SUNPRO_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_SUNPRO_EMULATED BOOST_COMP_SUNPRO_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_SUNPRO
|
||||
# define BOOST_COMP_SUNPRO BOOST_COMP_SUNPRO_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_SUNPRO_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_SUNPRO_NAME "Oracle Solaris Studio"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_SUNPRO,BOOST_COMP_SUNPRO_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_SUNPRO_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_SUNPRO_EMULATED,BOOST_COMP_SUNPRO_NAME)
|
||||
#endif
|
||||
54
include/boost/predef/compiler/tendra.h
Normal file
54
include/boost/predef/compiler/tendra.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_TENDRA_H
|
||||
#define BOOST_PREDEF_COMPILER_TENDRA_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_TENDRA`
|
||||
|
||||
http://en.wikipedia.org/wiki/TenDRA_Compiler[TenDRA C/{CPP}] compiler.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__TenDRA__+` | {predef_detection}
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_TENDRA BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__TenDRA__)
|
||||
# define BOOST_COMP_TENDRA_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_TENDRA_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_TENDRA_EMULATED BOOST_COMP_TENDRA_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_TENDRA
|
||||
# define BOOST_COMP_TENDRA BOOST_COMP_TENDRA_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_TENDRA_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_TENDRA_NAME "TenDRA C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_TENDRA,BOOST_COMP_TENDRA_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_TENDRA_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_TENDRA_EMULATED,BOOST_COMP_TENDRA_NAME)
|
||||
#endif
|
||||
106
include/boost/predef/compiler/visualc.h
Normal file
106
include/boost/predef/compiler/visualc.h
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_VISUALC_H
|
||||
#define BOOST_PREDEF_COMPILER_VISUALC_H
|
||||
|
||||
/* Other compilers that emulate this one need to be detected first. */
|
||||
|
||||
#include <boost/predef/compiler/clang.h>
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_MSVC`
|
||||
|
||||
http://en.wikipedia.org/wiki/Visual_studio[Microsoft Visual C/{CPP}] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+_MSC_VER+` | {predef_detection}
|
||||
|
||||
| `+_MSC_FULL_VER+` | V.R.P
|
||||
| `+_MSC_VER+` | V.R.0
|
||||
|===
|
||||
|
||||
NOTE: Release of Visual Studio after 2015 will no longer be identified
|
||||
by Boost Predef as the marketing version number. Instead we use the
|
||||
compiler version number directly, i.e. the _MSC_VER number.
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_MSVC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# if !defined (_MSC_FULL_VER)
|
||||
# define BOOST_COMP_MSVC_BUILD 0
|
||||
# else
|
||||
/* how many digits does the build number have? */
|
||||
# if _MSC_FULL_VER / 10000 == _MSC_VER
|
||||
/* four digits */
|
||||
# define BOOST_COMP_MSVC_BUILD (_MSC_FULL_VER % 10000)
|
||||
# elif _MSC_FULL_VER / 100000 == _MSC_VER
|
||||
/* five digits */
|
||||
# define BOOST_COMP_MSVC_BUILD (_MSC_FULL_VER % 100000)
|
||||
# else
|
||||
# error "Cannot determine build number from _MSC_FULL_VER"
|
||||
# endif
|
||||
# endif
|
||||
/*
|
||||
VS2014 was skipped in the release sequence for MS. Which
|
||||
means that the compiler and VS product versions are no longer
|
||||
in sync. Hence we need to use different formulas for
|
||||
mapping from MSC version to VS product version.
|
||||
|
||||
VS2017 is a total nightmare when it comes to version numbers.
|
||||
Hence to avoid arguments relating to that both present and
|
||||
future.. Any version after VS2015 will use solely the compiler
|
||||
version, i.e. cl.exe, as the version number here.
|
||||
*/
|
||||
# if (_MSC_VER > 1900)
|
||||
# define BOOST_COMP_MSVC_DETECTION BOOST_VERSION_NUMBER(\
|
||||
_MSC_VER/100,\
|
||||
_MSC_VER%100,\
|
||||
BOOST_COMP_MSVC_BUILD)
|
||||
# elif (_MSC_VER >= 1900)
|
||||
# define BOOST_COMP_MSVC_DETECTION BOOST_VERSION_NUMBER(\
|
||||
_MSC_VER/100-5,\
|
||||
_MSC_VER%100,\
|
||||
BOOST_COMP_MSVC_BUILD)
|
||||
# else
|
||||
# define BOOST_COMP_MSVC_DETECTION BOOST_VERSION_NUMBER(\
|
||||
_MSC_VER/100-6,\
|
||||
_MSC_VER%100,\
|
||||
BOOST_COMP_MSVC_BUILD)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_MSVC_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_MSVC_EMULATED BOOST_COMP_MSVC_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_MSVC
|
||||
# define BOOST_COMP_MSVC BOOST_COMP_MSVC_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_MSVC_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_MSVC_NAME "Microsoft Visual C/C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MSVC,BOOST_COMP_MSVC_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_MSVC_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MSVC_EMULATED,BOOST_COMP_MSVC_NAME)
|
||||
#endif
|
||||
57
include/boost/predef/compiler/watcom.h
Normal file
57
include/boost/predef/compiler/watcom.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_COMPILER_WATCOM_H
|
||||
#define BOOST_PREDEF_COMPILER_WATCOM_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_COMP_WATCOM`
|
||||
|
||||
http://en.wikipedia.org/wiki/Watcom[Watcom {CPP}] compiler.
|
||||
Version number available as major, and minor.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__WATCOMC__+` | {predef_detection}
|
||||
|
||||
| `+__WATCOMC__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_COMP_WATCOM BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__WATCOMC__)
|
||||
# define BOOST_COMP_WATCOM_DETECTION BOOST_PREDEF_MAKE_10_VVRR(__WATCOMC__)
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_COMP_WATCOM_DETECTION
|
||||
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define BOOST_COMP_WATCOM_EMULATED BOOST_COMP_WATCOM_DETECTION
|
||||
# else
|
||||
# undef BOOST_COMP_WATCOM
|
||||
# define BOOST_COMP_WATCOM BOOST_COMP_WATCOM_DETECTION
|
||||
# endif
|
||||
# define BOOST_COMP_WATCOM_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_WATCOM_NAME "Watcom C++"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_WATCOM,BOOST_COMP_WATCOM_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_WATCOM_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_WATCOM_EMULATED,BOOST_COMP_WATCOM_NAME)
|
||||
#endif
|
||||
Reference in New Issue
Block a user