mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-29 15:34:08 +02:00
Define nullptr macro only if it is not previously defined.
This commit is contained in:
parent
ed51d23335
commit
59d994ea5f
@ -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 {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user