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(__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 */