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

View File

@@ -56,7 +56,7 @@ static int template_execute(template_context* ctx,
static inline msgpack_object template_callback_root(unpack_user* u)
{ msgpack_object o = {}; return o; }
{ msgpack_object o = { MSGPACK_OBJECT_NIL }; return o; }
static inline int template_callback_uint8(unpack_user* u, uint8_t d, msgpack_object* o)
{ o->type = MSGPACK_OBJECT_POSITIVE_INTEGER; o->via.u64 = d; return 0; }