Skip to content

Commit 1b13523

Browse files
committed
Merge pull request #315 from redboltz/fix_boost_pp_variadics
Added BOOST_PP_VARIADICS checking to avoid multiple definition.
2 parents b8d357c + a35fe57 commit 1b13523

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

erb/cpp03_define_map.hpp.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html
2525
// However, supporting compiler detection is not complete. msgpack-c requires
2626
// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly.
27+
#if !defined(BOOST_PP_VARIADICS)
2728
#define BOOST_PP_VARIADICS
29+
#endif
30+
2831
#include <boost/preprocessor.hpp>
2932

3033
#include "msgpack/versioning.hpp"

include/msgpack/adaptor/detail/cpp03_define_map.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html
2525
// However, supporting compiler detection is not complete. msgpack-c requires
2626
// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly.
27+
#if !defined(BOOST_PP_VARIADICS)
2728
#define BOOST_PP_VARIADICS
29+
#endif
30+
2831
#include <boost/preprocessor.hpp>
2932

3033
#include "msgpack/versioning.hpp"

include/msgpack/adaptor/detail/cpp11_define_map.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html
2525
// However, supporting compiler detection is not complete. msgpack-c requires
2626
// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly.
27+
#if !defined(BOOST_PP_VARIADICS)
2728
#define BOOST_PP_VARIADICS
29+
#endif
30+
2831
#include <boost/preprocessor.hpp>
2932

3033
#include "msgpack/versioning.hpp"

0 commit comments

Comments
 (0)