From 65496dd1d2b4071eb549c17c40708f0519ca8ee6 Mon Sep 17 00:00:00 2001 From: Paul Mensonides Date: Wed, 22 Jun 2005 11:02:32 +0000 Subject: [PATCH] IBM workaround [SVN r29731] --- include/boost/preprocessor/seq/elem.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/boost/preprocessor/seq/elem.hpp b/include/boost/preprocessor/seq/elem.hpp index 9795839..9c7a4b2 100644 --- a/include/boost/preprocessor/seq/elem.hpp +++ b/include/boost/preprocessor/seq/elem.hpp @@ -12,6 +12,7 @@ # ifndef BOOST_PREPROCESSOR_SEQ_ELEM_HPP # define BOOST_PREPROCESSOR_SEQ_ELEM_HPP # +# include # include # include # @@ -34,7 +35,11 @@ # define BOOST_PP_SEQ_ELEM_III(im) BOOST_PP_SEQ_ELEM_IV(im) # define BOOST_PP_SEQ_ELEM_IV(x, _) x # else -# define BOOST_PP_SEQ_ELEM_I(i, seq) BOOST_PP_SEQ_ELEM_II(BOOST_PP_SEQ_ELEM_ ## i seq) +# if defined(__IBMC__) || defined(__IBMCPP__) +# define BOOST_PP_SEQ_ELEM_I(i, seq) BOOST_PP_SEQ_ELEM_II(BOOST_PP_CAT(BOOST_PP_SEQ_ELEM_ ## i, seq)) +# else +# define BOOST_PP_SEQ_ELEM_I(i, seq) BOOST_PP_SEQ_ELEM_II(BOOST_PP_SEQ_ELEM_ ## i seq) +# endif # define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im) # define BOOST_PP_SEQ_ELEM_III(x, _) x # endif