mirror of
https://github.com/msgpack/msgpack-c
synced 2026-06-08 16:11:40 +00:00
type::nil is defined only if MSGPACK_USE_LEGACY_NIL in v2.
Note: In v1, type::nil is defined if NOT defined MSGPACK_DISABLE_LEGACY_NIL.
This commit is contained in:
@@ -22,6 +22,12 @@ namespace type {
|
||||
|
||||
using v1::type::nil_t;
|
||||
|
||||
#if defined(MSGPACK_USE_LEGACY_NIL)
|
||||
|
||||
typedef nil_t nil;
|
||||
|
||||
#endif // defined(MSGPACK_USE_LEGACY_NIL)
|
||||
|
||||
using v1::type::operator<;
|
||||
using v1::type::operator==;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user