mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-18 11:39:02 +02:00
Define nullptr macro only if it is not previously defined.
This commit is contained in:
@@ -21,7 +21,9 @@
|
|||||||
#if defined __cplusplus
|
#if defined __cplusplus
|
||||||
#if __cplusplus < 201103
|
#if __cplusplus < 201103
|
||||||
|
|
||||||
|
#if !defined(nullptr)
|
||||||
#define nullptr (0)
|
#define nullptr (0)
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace msgpack {
|
namespace msgpack {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user