forked from boostorg/preprocessor
When the Intellisense compiler is being used wihin the Visual Studio IDE, both __EDG__ and __INTELLISENSE__ are defined along with the usual VC++ predefines. This change adjusts the Boost PP configuration to take into account that situation.
This commit is contained in:
@ -32,7 +32,7 @@
|
|||||||
# elif defined(__MWERKS__) && __MWERKS__ >= 0x3200
|
# elif defined(__MWERKS__) && __MWERKS__ >= 0x3200
|
||||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT())
|
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT())
|
||||||
# elif defined(__EDG__) || defined(__EDG_VERSION__)
|
# elif defined(__EDG__) || defined(__EDG_VERSION__)
|
||||||
# if defined(_MSC_VER) && __EDG_VERSION__ >= 308
|
# if defined(_MSC_VER) && (defined(__INTELLISENSE__) || __EDG_VERSION__ >= 308)
|
||||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_MSVC())
|
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_MSVC())
|
||||||
# else
|
# else
|
||||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_EDG() | BOOST_PP_CONFIG_STRICT())
|
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_EDG() | BOOST_PP_CONFIG_STRICT())
|
||||||
@ -75,7 +75,7 @@
|
|||||||
# if defined __GCCXML__ || defined __CUDACC__ || defined __PATHSCALE__ || defined __DMC__ || defined __CODEGEARC__ || defined __BORLANDC__ || defined __MWERKS__ || defined __SUNPRO_CC || defined __HP_aCC && !defined __EDG__ || defined __MRC__ || defined __SC__ || defined __IBMCPP__ || defined __PGI
|
# if defined __GCCXML__ || defined __CUDACC__ || defined __PATHSCALE__ || defined __DMC__ || defined __CODEGEARC__ || defined __BORLANDC__ || defined __MWERKS__ || defined __SUNPRO_CC || defined __HP_aCC && !defined __EDG__ || defined __MRC__ || defined __SC__ || defined __IBMCPP__ || defined __PGI
|
||||||
# define BOOST_PP_VARIADICS 0
|
# define BOOST_PP_VARIADICS 0
|
||||||
# /* VC++ (C/C++) */
|
# /* VC++ (C/C++) */
|
||||||
# elif defined _MSC_VER && _MSC_VER >= 1400 && !defined __EDG__ && !defined __clang__
|
# elif defined _MSC_VER && _MSC_VER >= 1400 && (!defined __EDG__ || defined(__INTELLISENSE__)) && !defined __clang__
|
||||||
# define BOOST_PP_VARIADICS 1
|
# define BOOST_PP_VARIADICS 1
|
||||||
# define BOOST_PP_VARIADICS_MSVC 1
|
# define BOOST_PP_VARIADICS_MSVC 1
|
||||||
# /* Wave (C/C++), GCC (C++) */
|
# /* Wave (C/C++), GCC (C++) */
|
||||||
@ -90,7 +90,7 @@
|
|||||||
# elif !BOOST_PP_VARIADICS + 1 < 2
|
# elif !BOOST_PP_VARIADICS + 1 < 2
|
||||||
# undef BOOST_PP_VARIADICS
|
# undef BOOST_PP_VARIADICS
|
||||||
# define BOOST_PP_VARIADICS 1
|
# define BOOST_PP_VARIADICS 1
|
||||||
# if defined _MSC_VER && _MSC_VER >= 1400 && !(defined __EDG__ || defined __GCCXML__ || defined __CUDACC__ || defined __PATHSCALE__ || defined __clang__ || defined __DMC__ || defined __CODEGEARC__ || defined __BORLANDC__ || defined __MWERKS__ || defined __SUNPRO_CC || defined __HP_aCC || defined __MRC__ || defined __SC__ || defined __IBMCPP__ || defined __PGI)
|
# if defined _MSC_VER && _MSC_VER >= 1400 && (defined(__INTELLISENSE__) || !(defined __EDG__ || defined __GCCXML__ || defined __CUDACC__ || defined __PATHSCALE__ || defined __clang__ || defined __DMC__ || defined __CODEGEARC__ || defined __BORLANDC__ || defined __MWERKS__ || defined __SUNPRO_CC || defined __HP_aCC || defined __MRC__ || defined __SC__ || defined __IBMCPP__ || defined __PGI))
|
||||||
# define BOOST_PP_VARIADICS_MSVC 1
|
# define BOOST_PP_VARIADICS_MSVC 1
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
|
Reference in New Issue
Block a user