mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-11-03 00:23:28 +01:00
Fixed #209
Added conditional include stdbool.h based on @equalsraf comment.
This commit is contained in:
@@ -183,16 +183,20 @@ typedef unsigned int _msgpack_atomic_counter_t;
|
|||||||
|
|
||||||
|
|
||||||
#if !defined(__cplusplus) && defined(_MSC_VER)
|
#if !defined(__cplusplus) && defined(_MSC_VER)
|
||||||
#if !defined(FALSE)
|
# if !defined(FALSE)
|
||||||
#define FALSE (0)
|
# define FALSE (0)
|
||||||
#endif
|
# endif
|
||||||
#if !defined(TRUE)
|
# if !defined(TRUE)
|
||||||
#define TRUE (!FALSE)
|
# define TRUE (!FALSE)
|
||||||
#endif
|
# endif
|
||||||
#define bool int
|
# if _MSC_VER >= 1800
|
||||||
#define true TRUE
|
# include <stdbool.h>
|
||||||
#define false FALSE
|
# else
|
||||||
#define inline __inline
|
# define bool int
|
||||||
|
# define true TRUE
|
||||||
|
# define false FALSE
|
||||||
|
# endif
|
||||||
|
# define inline __inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* msgpack/sysdep.h */
|
#endif /* msgpack/sysdep.h */
|
||||||
|
|||||||
Reference in New Issue
Block a user