To work with Windows Phone

Changed some code to cater to MSVC compiler, it potentially support
Windows Runtime ( i.e. Windows Metro Applications ).
This commit is contained in:
jiangcaiyang
2015-09-10 10:18:10 +08:00
committed by Jiang Yimin
parent 4da435044d
commit 45c485476a
3 changed files with 36 additions and 12 deletions

Binary file not shown.

View File

@ -4,6 +4,10 @@
#include <QVariant>
#include <QtGlobal>
#ifdef Q_OS_WINRT
#include <stdint.h>
#endif
#define MSGPACK_MAJOR 0
#define MSGPACK_MINOR 1
#define MSGPACK_VERSION 0

View File

@ -8,18 +8,38 @@
#include <QWriteLocker>
MsgPackPrivate::type_parser_f MsgPackPrivate::unpackers[32] = {
unpack_nil,
unpack_never_used,
unpack_false, unpack_true,
unpack_bin8, unpack_bin16, unpack_bin32,
unpack_ext8, unpack_ext16, unpack_ext32,
unpack_float32, unpack_float64,
unpack_uint8, unpack_uint16, unpack_uint32, unpack_uint64,
unpack_int8, unpack_int16, unpack_int32, unpack_int64,
unpack_fixext1, unpack_fixext2, unpack_fixext4, unpack_fixext8, unpack_fixext16,
unpack_str8, unpack_str16, unpack_str32,
unpack_array16, unpack_array32,
unpack_map16, unpack_map32
MsgPackPrivate::unpack_nil,
MsgPackPrivate::unpack_never_used,
MsgPackPrivate::unpack_false,
MsgPackPrivate::unpack_true,
MsgPackPrivate::unpack_bin8,
MsgPackPrivate::unpack_bin16,
MsgPackPrivate::unpack_bin32,
MsgPackPrivate::unpack_ext8,
MsgPackPrivate::unpack_ext16,
MsgPackPrivate::unpack_ext32,
MsgPackPrivate::unpack_float32,
MsgPackPrivate::unpack_float64,
MsgPackPrivate::unpack_uint8,
MsgPackPrivate::unpack_uint16,
MsgPackPrivate::unpack_uint32,
MsgPackPrivate::unpack_uint64,
MsgPackPrivate::unpack_int8,
MsgPackPrivate::unpack_int16,
MsgPackPrivate::unpack_int32,
MsgPackPrivate::unpack_int64,
MsgPackPrivate::unpack_fixext1,
MsgPackPrivate::unpack_fixext2,
MsgPackPrivate::unpack_fixext4,
MsgPackPrivate::unpack_fixext8,
MsgPackPrivate::unpack_fixext16,
MsgPackPrivate::unpack_str8,
MsgPackPrivate::unpack_str16,
MsgPackPrivate::unpack_str32,
MsgPackPrivate::unpack_array16,
MsgPackPrivate::unpack_array32,
MsgPackPrivate::unpack_map16,
MsgPackPrivate::unpack_map32
};
QHash<qint8, MsgPack::unpack_user_f> MsgPackPrivate::user_unpackers;