Added conditional include stdbool.h based on @equalsraf comment.
This commit is contained in:
Takatoshi Kondo
2015-02-07 21:25:49 +09:00
parent 3662a17e81
commit 2266505eed

View File

@@ -183,16 +183,20 @@ typedef unsigned int _msgpack_atomic_counter_t;
#if !defined(__cplusplus) && defined(_MSC_VER)
#if !defined(FALSE)
#define FALSE (0)
#endif
#if !defined(TRUE)
#define TRUE (!FALSE)
#endif
#define bool int
#define true TRUE
#define false FALSE
#define inline __inline
# if !defined(FALSE)
# define FALSE (0)
# endif
# if !defined(TRUE)
# define TRUE (!FALSE)
# endif
# if _MSC_VER >= 1800
# include <stdbool.h>
# else
# define bool int
# define true TRUE
# define false FALSE
# endif
# define inline __inline
#endif
#endif /* msgpack/sysdep.h */