Skip to content

Commit b4eba4b

Browse files
committed
Merge pull request #219 from redboltz/fix_issue_209
Fixed #209
2 parents 3662a17 + 2266505 commit b4eba4b

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

include/msgpack/sysdep.h

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,20 @@ typedef unsigned int _msgpack_atomic_counter_t;
183183

184184

185185
#if !defined(__cplusplus) && defined(_MSC_VER)
186-
#if !defined(FALSE)
187-
#define FALSE (0)
188-
#endif
189-
#if !defined(TRUE)
190-
#define TRUE (!FALSE)
191-
#endif
192-
#define bool int
193-
#define true TRUE
194-
#define false FALSE
195-
#define inline __inline
186+
# if !defined(FALSE)
187+
# define FALSE (0)
188+
# endif
189+
# if !defined(TRUE)
190+
# define TRUE (!FALSE)
191+
# endif
192+
# if _MSC_VER >= 1800
193+
# include <stdbool.h>
194+
# else
195+
# define bool int
196+
# define true TRUE
197+
# define false FALSE
198+
# endif
199+
# define inline __inline
196200
#endif
197201

198202
#endif /* msgpack/sysdep.h */

0 commit comments

Comments
 (0)