Skip to content

Commit 2865a96

Browse files
committed
Fixed existing code compile error problem.
Changed macro name from MSGPACK_USE_LEGACY_NIL to MSGPACK_DISABLE_LEGACY_NIL. msgpack-c shouldn't make compile error on existing codes by default without major version up. So if you want to disable msgpack::type::nil, you need to define MSGPACK_DISABLE_LEGACY_NIL macro.
1 parent 79222b6 commit 2865a96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/msgpack/adaptor/nil.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ namespace type {
2323

2424
struct nil_t { };
2525

26-
#if defined(MSGPACK_USE_LEGACY_NIL)
26+
#if !defined(MSGPACK_DISABLE_LEGACY_NIL)
2727

2828
typedef nil_t nil;
2929

30-
#endif // defined(MSGPACK_USE_LEGACY_NIL)
30+
#endif // !defined(MSGPACK_DISABLE_LEGACY_NIL)
3131

3232
inline bool operator<(nil_t const& lhs, nil_t const& rhs) {
3333
return &lhs < &rhs;

0 commit comments

Comments
 (0)