Moved bool and inline definition from msgpack.h to sysdep.h.

Set compile settiong on MSVC. ".c" files are compliled as C, not C++. (msgpack_vc8.vcproj, CMakeLists.txt)
Fixed msgpack root object initialization problem on MSVC. {} initialization is not supported on MSVC.
This commit is contained in:
Takatoshi Kondo
2014-07-02 17:24:11 +09:00
parent e0c40c1c59
commit 751a6f98fe
5 changed files with 14 additions and 97 deletions
+13
View File
@@ -191,5 +191,18 @@ 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
#endif
#endif /* msgpack/sysdep.h */