mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-29 15:34:08 +02:00
Added BOOST_PP_VARIADICS checking to avoid multiple definition.
This commit is contained in:
parent
d3450c1fce
commit
a35fe57737
@ -24,7 +24,10 @@
|
|||||||
// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html
|
// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html
|
||||||
// However, supporting compiler detection is not complete. msgpack-c requires
|
// However, supporting compiler detection is not complete. msgpack-c requires
|
||||||
// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly.
|
// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly.
|
||||||
|
#if !defined(BOOST_PP_VARIADICS)
|
||||||
#define BOOST_PP_VARIADICS
|
#define BOOST_PP_VARIADICS
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <boost/preprocessor.hpp>
|
#include <boost/preprocessor.hpp>
|
||||||
|
|
||||||
#include "msgpack/versioning.hpp"
|
#include "msgpack/versioning.hpp"
|
||||||
|
@ -24,7 +24,10 @@
|
|||||||
// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html
|
// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html
|
||||||
// However, supporting compiler detection is not complete. msgpack-c requires
|
// However, supporting compiler detection is not complete. msgpack-c requires
|
||||||
// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly.
|
// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly.
|
||||||
|
#if !defined(BOOST_PP_VARIADICS)
|
||||||
#define BOOST_PP_VARIADICS
|
#define BOOST_PP_VARIADICS
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <boost/preprocessor.hpp>
|
#include <boost/preprocessor.hpp>
|
||||||
|
|
||||||
#include "msgpack/versioning.hpp"
|
#include "msgpack/versioning.hpp"
|
||||||
|
@ -24,7 +24,10 @@
|
|||||||
// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html
|
// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html
|
||||||
// However, supporting compiler detection is not complete. msgpack-c requires
|
// However, supporting compiler detection is not complete. msgpack-c requires
|
||||||
// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly.
|
// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly.
|
||||||
|
#if !defined(BOOST_PP_VARIADICS)
|
||||||
#define BOOST_PP_VARIADICS
|
#define BOOST_PP_VARIADICS
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <boost/preprocessor.hpp>
|
#include <boost/preprocessor.hpp>
|
||||||
|
|
||||||
#include "msgpack/versioning.hpp"
|
#include "msgpack/versioning.hpp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user