From 3990b38585fe39094d19a50c9cf3ea9cbf59d7dd Mon Sep 17 00:00:00 2001 From: mat007 Date: Sun, 22 Jul 2012 07:10:38 +0000 Subject: [PATCH] Fix for gcc git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@504 860be788-9bd5-4423-9f1e-828f051e677b --- turtle/detail/function.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/turtle/detail/function.hpp b/turtle/detail/function.hpp index 8498f30..0727005 100644 --- a/turtle/detail/function.hpp +++ b/turtle/detail/function.hpp @@ -21,6 +21,7 @@ #include "context.hpp" #include "invocation.hpp" #include "expectation_base.hpp" +#include #include #include #include @@ -40,10 +41,11 @@ #undef MOCK_NUM_ARGS_0 #undef MOCK_NUM_ARGS -#define BOOST_PP_ITERATION_PARAMS_1 \ - (3,(1,MOCK_MAX_ARGS,"function_iterate.hpp")) +#define BOOST_PP_FILENAME_1 "turtle/detail/function_iterate.hpp" +#define BOOST_PP_ITERATION_LIMITS (1, MOCK_MAX_ARGS) #include BOOST_PP_ITERATE() -#undef BOOST_PP_ITERATION_PARAMS_1 +#undef BOOST_PP_FILENAME_1 +#undef BOOST_PP_ITERATION_LIMITS namespace mock {