[SVN r15538]
This commit is contained in:
Aleksey Gurtovoy
2002-09-28 09:40:35 +00:00
parent 1a9f6351c4
commit 60ab61c298
2 changed files with 11 additions and 22 deletions

View File

@@ -21,21 +21,19 @@
#include "boost/config.hpp" #include "boost/config.hpp"
#if defined(BOOST_MSVC) && BOOST_MSVC < 1300 #if defined(BOOST_MSVC) && BOOST_MSVC < 1300
# define BOOST_MPL_COMPILER_CLASS msvc60 # define BOOST_MPL_COMPILER_DIR msvc60
#elif defined(BOOST_MSVC) && BOOST_MSVC == 1300 #elif defined(BOOST_MSVC) && BOOST_MSVC == 1300
# define BOOST_MPL_COMPILER_CLASS msvc70 # define BOOST_MPL_COMPILER_DIR msvc70
#elif defined(__GNUC__) #elif defined(__GNUC__)
# define BOOST_MPL_COMPILER_CLASS gcc # define BOOST_MPL_COMPILER_DIR gcc
#elif defined(__BORLANDC__) #elif defined(__BORLANDC__)
# define BOOST_MPL_COMPILER_CLASS bcc # define BOOST_MPL_COMPILER_DIR bcc
#elif defined(__MWERKS__) && __MWERKS__ <= 0x3001 #elif defined(__MWERKS__) && __MWERKS__ <= 0x3001
# define BOOST_MPL_COMPILER_CLASS mwcw # define BOOST_MPL_COMPILER_DIR mwcw
#elif defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) #elif defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
# define BOOST_MPL_COMPILER_CLASS no_ctps # define BOOST_MPL_COMPILER_DIR no_ctps
#else #else
# define BOOST_MPL_COMPILER_CLASS plain # define BOOST_MPL_COMPILER_DIR plain
#endif #endif
#define BOOST_MPL_COMPILER_DIR BOOST_MPL_COMPILER_CLASS/
#endif // BOOST_MPL_AUX_CONFIG_COMPILER_HPP_INCLUDED #endif // BOOST_MPL_AUX_CONFIG_COMPILER_HPP_INCLUDED

View File

@@ -20,20 +20,11 @@
#include "boost/preprocessor/cat.hpp" #include "boost/preprocessor/cat.hpp"
#include "boost/preprocessor/stringize.hpp" #include "boost/preprocessor/stringize.hpp"
// local macro, #undef-ined at the end of the header # define AUX_PREPROCESSED_HEADER \
#define AUX_PREPROCESSED_HEADER \ aux_/preprocessed/BOOST_MPL_COMPILER_DIR/BOOST_MPL_PREPROCESSED_HEADER \
BOOST_PP_STRINGIZE( \
BOOST_PP_CAT( \
BOOST_PP_CAT( \
boost/mpl/aux_/preprocessed/ \
, BOOST_MPL_COMPILER_DIR \
) \
, BOOST_MPL_PREPROCESSED_HEADER \
) \
) \
/**/ /**/
#include AUX_PREPROCESSED_HEADER # include BOOST_PP_STRINGIZE(boost/mpl/AUX_PREPROCESSED_HEADER)
# undef AUX_PREPROCESSED_HEADER
#undef AUX_PREPROCESSED_HEADER
#undef BOOST_MPL_PREPROCESSED_HEADER #undef BOOST_MPL_PREPROCESSED_HEADER