messagepack implementation for embedded systems (mbed / arduino)

Dependents:   hello_message_pack

msgpack-c & msgpack-c++ https://github.com/msgpack/msgpack-c implementation for embedded systems (mbed / Arduino)

Committer:
hideakitai
Date:
Mon Feb 22 01:43:48 2016 +0000
Revision:
4:bd0c06dd6e92
Parent:
0:3f9dbf1e2cb0
fix throw error

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hideakitai 0:3f9dbf1e2cb0 1 /*
hideakitai 0:3f9dbf1e2cb0 2 Copyright Rene Rivera 2008-2013
hideakitai 0:3f9dbf1e2cb0 3 Distributed under the Boost Software License, Version 1.0.
hideakitai 0:3f9dbf1e2cb0 4 (See accompanying file LICENSE_1_0.txt or copy at
hideakitai 0:3f9dbf1e2cb0 5 http://www.boost.org/LICENSE_1_0.txt)
hideakitai 0:3f9dbf1e2cb0 6 */
hideakitai 0:3f9dbf1e2cb0 7
hideakitai 0:3f9dbf1e2cb0 8 #ifndef MSGPACK_PREDEF_LIBRARY_C_GNU_H
hideakitai 0:3f9dbf1e2cb0 9 #define MSGPACK_PREDEF_LIBRARY_C_GNU_H
hideakitai 0:3f9dbf1e2cb0 10
hideakitai 0:3f9dbf1e2cb0 11 #include <msgpack/predef/version_number.h>
hideakitai 0:3f9dbf1e2cb0 12 #include <msgpack/predef/make.h>
hideakitai 0:3f9dbf1e2cb0 13
hideakitai 0:3f9dbf1e2cb0 14 #include <msgpack/predef/library/c/_prefix.h>
hideakitai 0:3f9dbf1e2cb0 15
hideakitai 0:3f9dbf1e2cb0 16 #if defined(__STDC__)
hideakitai 0:3f9dbf1e2cb0 17 #include <stddef.h>
hideakitai 0:3f9dbf1e2cb0 18 #elif defined(__cplusplus)
hideakitai 0:3f9dbf1e2cb0 19 #include <cstddef>
hideakitai 0:3f9dbf1e2cb0 20 #endif
hideakitai 0:3f9dbf1e2cb0 21
hideakitai 0:3f9dbf1e2cb0 22 /*`
hideakitai 0:3f9dbf1e2cb0 23 [heading `MSGPACK_LIB_C_GNU`]
hideakitai 0:3f9dbf1e2cb0 24
hideakitai 0:3f9dbf1e2cb0 25 [@http://en.wikipedia.org/wiki/Glibc GNU glibc] Standard C library.
hideakitai 0:3f9dbf1e2cb0 26 Version number available as major, and minor.
hideakitai 0:3f9dbf1e2cb0 27
hideakitai 0:3f9dbf1e2cb0 28 [table
hideakitai 0:3f9dbf1e2cb0 29 [[__predef_symbol__] [__predef_version__]]
hideakitai 0:3f9dbf1e2cb0 30
hideakitai 0:3f9dbf1e2cb0 31 [[`__GLIBC__`] [__predef_detection__]]
hideakitai 0:3f9dbf1e2cb0 32 [[`__GNU_LIBRARY__`] [__predef_detection__]]
hideakitai 0:3f9dbf1e2cb0 33
hideakitai 0:3f9dbf1e2cb0 34 [[`__GLIBC__`, `__GLIBC_MINOR__`] [V.R.0]]
hideakitai 0:3f9dbf1e2cb0 35 [[`__GNU_LIBRARY__`, `__GNU_LIBRARY_MINOR__`] [V.R.0]]
hideakitai 0:3f9dbf1e2cb0 36 ]
hideakitai 0:3f9dbf1e2cb0 37 */
hideakitai 0:3f9dbf1e2cb0 38
hideakitai 0:3f9dbf1e2cb0 39 #define MSGPACK_LIB_C_GNU MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
hideakitai 0:3f9dbf1e2cb0 40
hideakitai 0:3f9dbf1e2cb0 41 #if defined(__GLIBC__) || defined(__GNU_LIBRARY__)
hideakitai 0:3f9dbf1e2cb0 42 # undef MSGPACK_LIB_C_GNU
hideakitai 0:3f9dbf1e2cb0 43 # if defined(__GLIBC__)
hideakitai 0:3f9dbf1e2cb0 44 # define MSGPACK_LIB_C_GNU \
hideakitai 0:3f9dbf1e2cb0 45 MSGPACK_VERSION_NUMBER(__GLIBC__,__GLIBC_MINOR__,0)
hideakitai 0:3f9dbf1e2cb0 46 # else
hideakitai 0:3f9dbf1e2cb0 47 # define MSGPACK_LIB_C_GNU \
hideakitai 0:3f9dbf1e2cb0 48 MSGPACK_VERSION_NUMBER(__GNU_LIBRARY__,__GNU_LIBRARY_MINOR__,0)
hideakitai 0:3f9dbf1e2cb0 49 # endif
hideakitai 0:3f9dbf1e2cb0 50 #endif
hideakitai 0:3f9dbf1e2cb0 51
hideakitai 0:3f9dbf1e2cb0 52 #if MSGPACK_LIB_C_GNU
hideakitai 0:3f9dbf1e2cb0 53 # define MSGPACK_LIB_C_GNU_AVAILABLE
hideakitai 0:3f9dbf1e2cb0 54 #endif
hideakitai 0:3f9dbf1e2cb0 55
hideakitai 0:3f9dbf1e2cb0 56 #define MSGPACK_LIB_C_GNU_NAME "GNU"
hideakitai 0:3f9dbf1e2cb0 57
hideakitai 0:3f9dbf1e2cb0 58 #include <msgpack/predef/detail/test.h>
hideakitai 0:3f9dbf1e2cb0 59 MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_C_GNU,MSGPACK_LIB_C_GNU_NAME)
hideakitai 0:3f9dbf1e2cb0 60
hideakitai 0:3f9dbf1e2cb0 61
hideakitai 0:3f9dbf1e2cb0 62 #endif