mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-28 15:14:11 +02:00
Merge branch 'add_boost_predef'
This commit is contained in:
commit
41bff7b96d
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "external/boost/predef"]
|
||||
path = external/boost/predef
|
||||
url = https://github.com/boostorg/predef.git
|
@ -57,6 +57,16 @@ IF (MSGPACK_BOOST)
|
||||
SET (CMAKE_CXX_FLAGS "-DMSGPACK_USE_BOOST ${CMAKE_CXX_FLAGS}")
|
||||
ENDIF ()
|
||||
|
||||
FILE (GLOB_RECURSE PREDEF_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/external/boost/predef/include/boost ${CMAKE_CURRENT_SOURCE_DIR}/external/boost/predef/include/boost/*.h)
|
||||
FOREACH (F ${PREDEF_FILES})
|
||||
SET(M "Converting ${F}")
|
||||
MESSAGE(STATUS ${M})
|
||||
FILE (READ ${CMAKE_CURRENT_SOURCE_DIR}/external/boost/predef/include/boost/${F} CONTENT)
|
||||
STRING(REPLACE "BOOST_" "MSGPACK_" CONTENT ${CONTENT})
|
||||
STRING(REPLACE "boost/" "msgpack/" CONTENT ${CONTENT})
|
||||
FILE (WRITE ${CMAKE_CURRENT_SOURCE_DIR}/include/msgpack/${F} ${CONTENT})
|
||||
ENDFOREACH ()
|
||||
|
||||
FIND_PACKAGE (GTest)
|
||||
FIND_PACKAGE (ZLIB)
|
||||
FIND_PACKAGE (Threads)
|
||||
@ -114,6 +124,11 @@ LIST (APPEND msgpack_HEADERS
|
||||
include/msgpack/zone.h
|
||||
)
|
||||
|
||||
FILE (GLOB_RECURSE PREDEF_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/include/msgpack/predef/*.h)
|
||||
|
||||
LIST (APPEND msgpack_HEADERS ${PREDEF_FILES})
|
||||
LIST (APPEND msgpack_HEADERS include/msgpack/predef.h)
|
||||
|
||||
IF (MSGPACK_ENABLE_CXX)
|
||||
LIST (APPEND msgpack_HEADERS
|
||||
include/msgpack.hpp
|
||||
|
29
NOTICE
Normal file
29
NOTICE
Normal file
@ -0,0 +1,29 @@
|
||||
This product bundles Boost Predef, which is available under a
|
||||
Boost Software License - Version 1.0. For details, see external/boost/predef,
|
||||
include/msgpack/predef.h, and include/msgpack/predef/*
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
Boost Software License - Version 1.0 - August 17th, 2003
|
||||
|
||||
Permission is hereby granted, free of charge, to any person or organization
|
||||
obtaining a copy of the software and accompanying documentation covered by
|
||||
this license (the "Software") to use, reproduce, display, distribute,
|
||||
execute, and transmit the Software, and to prepare derivative works of the
|
||||
Software, and to permit third-parties to whom the Software is furnished to
|
||||
do so, all subject to the following:
|
||||
|
||||
The copyright notices in the Software and this entire statement, including
|
||||
the above license grant, this restriction and the following disclaimer,
|
||||
must be included in all copies of the Software, in whole or in part, and
|
||||
all derivative works of the Software, unless such copies or derivative
|
||||
works are solely in the form of machine-executable object code generated by
|
||||
a source language processor.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
||||
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
||||
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
---------------------------------------------------------------------------
|
1
external/boost/predef
vendored
Submodule
1
external/boost/predef
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit c14eafa3efb6cafc3645f8b8e07925ab4189efd4
|
@ -149,7 +149,7 @@ inline void pack(Stream& s, const T& v)
|
||||
}
|
||||
|
||||
|
||||
#if defined(__LITTLE_ENDIAN__)
|
||||
#if MSGPACK_ENDIAN_LITTLE_BYTE
|
||||
template <typename T>
|
||||
inline char take8_8(T d) {
|
||||
return static_cast<char>(reinterpret_cast<uint8_t*>(&d)[0]);
|
||||
@ -167,7 +167,7 @@ inline char take8_64(T d) {
|
||||
return static_cast<char>(reinterpret_cast<uint8_t*>(&d)[0]);
|
||||
}
|
||||
|
||||
#elif defined(__BIG_ENDIAN__)
|
||||
#elif MSGPACK_ENDIAN_BIG_BYTE
|
||||
|
||||
template <typename T>
|
||||
inline char take8_8(T d) {
|
||||
@ -186,6 +186,8 @@ inline char take8_64(T d) {
|
||||
return static_cast<char>(reinterpret_cast<uint8_t*>(&d)[7]);
|
||||
}
|
||||
|
||||
#else
|
||||
#error msgpack-c supports only big endian and little endian
|
||||
#endif
|
||||
|
||||
template <typename Stream>
|
||||
|
@ -16,16 +16,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#if defined(__LITTLE_ENDIAN__)
|
||||
#if MSGPACK_ENDIAN_LITTLE_BYTE
|
||||
#define TAKE8_8(d) ((uint8_t*)&d)[0]
|
||||
#define TAKE8_16(d) ((uint8_t*)&d)[0]
|
||||
#define TAKE8_32(d) ((uint8_t*)&d)[0]
|
||||
#define TAKE8_64(d) ((uint8_t*)&d)[0]
|
||||
#elif defined(__BIG_ENDIAN__)
|
||||
#elif MSGPACK_ENDIAN_BIG_BYTE
|
||||
#define TAKE8_8(d) ((uint8_t*)&d)[0]
|
||||
#define TAKE8_16(d) ((uint8_t*)&d)[1]
|
||||
#define TAKE8_32(d) ((uint8_t*)&d)[3]
|
||||
#define TAKE8_64(d) ((uint8_t*)&d)[7]
|
||||
#else
|
||||
#error msgpack-c supports only big endian and little endian
|
||||
#endif
|
||||
|
||||
#ifndef msgpack_pack_inline_func
|
||||
|
19
include/msgpack/predef.h
Normal file
19
include/msgpack/predef.h
Normal file
@ -0,0 +1,19 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_H
|
||||
#define MSGPACK_PREDEF_H
|
||||
|
||||
#include <msgpack/predef/language.h>
|
||||
#include <msgpack/predef/architecture.h>
|
||||
#include <msgpack/predef/compiler.h>
|
||||
#include <msgpack/predef/library.h>
|
||||
#include <msgpack/predef/os.h>
|
||||
#include <msgpack/predef/other.h>
|
||||
#include <msgpack/predef/platform.h>
|
||||
|
||||
#endif
|
30
include/msgpack/predef/architecture.h
Normal file
30
include/msgpack/predef/architecture.h
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_H
|
||||
|
||||
#include <msgpack/predef/architecture/alpha.h>
|
||||
#include <msgpack/predef/architecture/arm.h>
|
||||
#include <msgpack/predef/architecture/blackfin.h>
|
||||
#include <msgpack/predef/architecture/convex.h>
|
||||
#include <msgpack/predef/architecture/ia64.h>
|
||||
#include <msgpack/predef/architecture/m68k.h>
|
||||
#include <msgpack/predef/architecture/mips.h>
|
||||
#include <msgpack/predef/architecture/parisc.h>
|
||||
#include <msgpack/predef/architecture/ppc.h>
|
||||
#include <msgpack/predef/architecture/pyramid.h>
|
||||
#include <msgpack/predef/architecture/rs6k.h>
|
||||
#include <msgpack/predef/architecture/sparc.h>
|
||||
#include <msgpack/predef/architecture/superh.h>
|
||||
#include <msgpack/predef/architecture/sys370.h>
|
||||
#include <msgpack/predef/architecture/sys390.h>
|
||||
#include <msgpack/predef/architecture/x86.h>
|
||||
#include <msgpack/predef/architecture/z.h>
|
||||
/*#include <msgpack/predef/architecture/.h>*/
|
||||
|
||||
#endif
|
60
include/msgpack/predef/architecture/alpha.h
Normal file
60
include/msgpack/predef/architecture/alpha.h
Normal file
@ -0,0 +1,60 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_ALPHA_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_ALPHA_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_ALPHA`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/DEC_Alpha DEC Alpha] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
[[`__alpha__`] [__predef_detection__]]
|
||||
[[`__alpha`] [__predef_detection__]]
|
||||
[[`_M_ALPHA`] [__predef_detection__]]
|
||||
|
||||
[[`__alpha_ev4__`] [4.0.0]]
|
||||
[[`__alpha_ev5__`] [5.0.0]]
|
||||
[[`__alpha_ev6__`] [6.0.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_ALPHA MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__alpha__) || defined(__alpha) || \
|
||||
defined(_M_ALPHA)
|
||||
# undef MSGPACK_ARCH_ALPHA
|
||||
# if !defined(MSGPACK_ARCH_ALPHA) && defined(__alpha_ev4__)
|
||||
# define MSGPACK_ARCH_ALPHA MSGPACK_VERSION_NUMBER(4,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_ALPHA) && defined(__alpha_ev5__)
|
||||
# define MSGPACK_ARCH_ALPHA MSGPACK_VERSION_NUMBER(5,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_ALPHA) && defined(__alpha_ev6__)
|
||||
# define MSGPACK_ARCH_ALPHA MSGPACK_VERSION_NUMBER(6,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_ALPHA)
|
||||
# define MSGPACK_ARCH_ALPHA MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_ALPHA
|
||||
# define MSGPACK_ARCH_ALPHA_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_ALPHA_NAME "DEC Alpha"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_ALPHA,MSGPACK_ARCH_ALPHA_NAME)
|
||||
|
||||
|
||||
#endif
|
71
include/msgpack/predef/architecture/arm.h
Normal file
71
include/msgpack/predef/architecture/arm.h
Normal file
@ -0,0 +1,71 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Copyright Franz Detro 2014
|
||||
Copyright (c) Microsoft Corporation 2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_ARM_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_ARM_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_ARM`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/ARM_architecture ARM] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__arm__`] [__predef_detection__]]
|
||||
[[`__arm64`] [__predef_detection__]]
|
||||
[[`__thumb__`] [__predef_detection__]]
|
||||
[[`__TARGET_ARCH_ARM`] [__predef_detection__]]
|
||||
[[`__TARGET_ARCH_THUMB`] [__predef_detection__]]
|
||||
[[`_M_ARM`] [__predef_detection__]]
|
||||
|
||||
[[`__arm64`] [8.0.0]]
|
||||
[[`__TARGET_ARCH_ARM`] [V.0.0]]
|
||||
[[`__TARGET_ARCH_THUMB`] [V.0.0]]
|
||||
[[`_M_ARM`] [V.0.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_ARM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__arm__) || defined(__arm64) || defined(__thumb__) || \
|
||||
defined(__TARGET_ARCH_ARM) || defined(__TARGET_ARCH_THUMB) || \
|
||||
defined(_M_ARM)
|
||||
# undef MSGPACK_ARCH_ARM
|
||||
# if !defined(MSGPACK_ARCH_ARM) && defined(__arm64)
|
||||
# define MSGPACK_ARCH_ARM MSGPACK_VERSION_NUMBER(8,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_ARM) && defined(__TARGET_ARCH_ARM)
|
||||
# define MSGPACK_ARCH_ARM MSGPACK_VERSION_NUMBER(__TARGET_ARCH_ARM,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_ARM) && defined(__TARGET_ARCH_THUMB)
|
||||
# define MSGPACK_ARCH_ARM MSGPACK_VERSION_NUMBER(__TARGET_ARCH_THUMB,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_ARM) && defined(_M_ARM)
|
||||
# define MSGPACK_ARCH_ARM MSGPACK_VERSION_NUMBER(_M_ARM,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_ARM)
|
||||
# define MSGPACK_ARCH_ARM MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_ARM
|
||||
# define MSGPACK_ARCH_ARM_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_ARM_NAME "ARM"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_ARM,MSGPACK_ARCH_ARM_NAME)
|
||||
|
||||
|
||||
#endif
|
47
include/msgpack/predef/architecture/blackfin.h
Normal file
47
include/msgpack/predef/architecture/blackfin.h
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_BLACKFIN_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_BLACKFIN_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_BLACKFIN`]
|
||||
|
||||
Blackfin Processors from Analog Devices.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__bfin__`] [__predef_detection__]]
|
||||
[[`__BFIN__`] [__predef_detection__]]
|
||||
[[`bfin`] [__predef_detection__]]
|
||||
[[`BFIN`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_BLACKFIN MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__bfin__) || defined(__BFIN__) || \
|
||||
defined(bfin) || defined(BFIN)
|
||||
# undef MSGPACK_ARCH_BLACKFIN
|
||||
# define MSGPACK_ARCH_BLACKFIN MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_BLACKFIN
|
||||
# define MSGPACK_ARCH_BLACKFIN_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_BLACKFIN_NAME "Blackfin"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_BLACKFIN,MSGPACK_ARCH_BLACKFIN_NAME)
|
||||
|
||||
|
||||
#endif
|
67
include/msgpack/predef/architecture/convex.h
Normal file
67
include/msgpack/predef/architecture/convex.h
Normal file
@ -0,0 +1,67 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2011-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_CONVEX_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_CONVEX_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_CONVEX`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Convex_Computer Convex Computer] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__convex__`] [__predef_detection__]]
|
||||
|
||||
[[`__convex_c1__`] [1.0.0]]
|
||||
[[`__convex_c2__`] [2.0.0]]
|
||||
[[`__convex_c32__`] [3.2.0]]
|
||||
[[`__convex_c34__`] [3.4.0]]
|
||||
[[`__convex_c38__`] [3.8.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__convex__)
|
||||
# undef MSGPACK_ARCH_CONVEX
|
||||
# if !defined(MSGPACK_ARCH_CONVEX) && defined(__convex_c1__)
|
||||
# define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER(1,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_CONVEX) && defined(__convex_c2__)
|
||||
# define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER(2,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_CONVEX) && defined(__convex_c32__)
|
||||
# define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER(3,2,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_CONVEX) && defined(__convex_c34__)
|
||||
# define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER(3,4,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_CONVEX) && defined(__convex_c38__)
|
||||
# define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER(3,8,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_CONVEX)
|
||||
# define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_CONVEX
|
||||
# define MSGPACK_ARCH_CONVEX_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_CONVEX_NAME "Convex Computer"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_CONVEX,MSGPACK_ARCH_CONVEX_NAME)
|
||||
|
||||
|
||||
|
||||
#endif
|
49
include/msgpack/predef/architecture/ia64.h
Normal file
49
include/msgpack/predef/architecture/ia64.h
Normal file
@ -0,0 +1,49 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_IA64_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_IA64_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_IA64`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Ia64 Intel Itanium 64] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__ia64__`] [__predef_detection__]]
|
||||
[[`_IA64`] [__predef_detection__]]
|
||||
[[`__IA64__`] [__predef_detection__]]
|
||||
[[`__ia64`] [__predef_detection__]]
|
||||
[[`_M_IA64`] [__predef_detection__]]
|
||||
[[`__itanium__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_IA64 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__ia64__) || defined(_IA64) || \
|
||||
defined(__IA64__) || defined(__ia64) || \
|
||||
defined(_M_IA64) || defined(__itanium__)
|
||||
# undef MSGPACK_ARCH_IA64
|
||||
# define MSGPACK_ARCH_IA64 MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_IA64
|
||||
# define MSGPACK_ARCH_IA64_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_IA64_NAME "Intel Itanium 64"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_IA64,MSGPACK_ARCH_IA64_NAME)
|
||||
|
||||
#endif
|
83
include/msgpack/predef/architecture/m68k.h
Normal file
83
include/msgpack/predef/architecture/m68k.h
Normal file
@ -0,0 +1,83 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_M68K_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_M68K_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_M68K`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/M68k Motorola 68k] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__m68k__`] [__predef_detection__]]
|
||||
[[`M68000`] [__predef_detection__]]
|
||||
|
||||
[[`__mc68060__`] [6.0.0]]
|
||||
[[`mc68060`] [6.0.0]]
|
||||
[[`__mc68060`] [6.0.0]]
|
||||
[[`__mc68040__`] [4.0.0]]
|
||||
[[`mc68040`] [4.0.0]]
|
||||
[[`__mc68040`] [4.0.0]]
|
||||
[[`__mc68030__`] [3.0.0]]
|
||||
[[`mc68030`] [3.0.0]]
|
||||
[[`__mc68030`] [3.0.0]]
|
||||
[[`__mc68020__`] [2.0.0]]
|
||||
[[`mc68020`] [2.0.0]]
|
||||
[[`__mc68020`] [2.0.0]]
|
||||
[[`__mc68010__`] [1.0.0]]
|
||||
[[`mc68010`] [1.0.0]]
|
||||
[[`__mc68010`] [1.0.0]]
|
||||
[[`__mc68000__`] [0.0.1]]
|
||||
[[`mc68000`] [0.0.1]]
|
||||
[[`__mc68000`] [0.0.1]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__m68k__) || defined(M68000)
|
||||
# undef MSGPACK_ARCH_M68K
|
||||
# if !defined(MSGPACK_ARCH_M68K) && (defined(__mc68060__) || defined(mc68060) || defined(__mc68060))
|
||||
# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER(6,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_M68K) && (defined(__mc68040__) || defined(mc68040) || defined(__mc68040))
|
||||
# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER(4,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_M68K) && (defined(__mc68030__) || defined(mc68030) || defined(__mc68030))
|
||||
# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER(3,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_M68K) && (defined(__mc68020__) || defined(mc68020) || defined(__mc68020))
|
||||
# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER(2,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_M68K) && (defined(__mc68010__) || defined(mc68010) || defined(__mc68010))
|
||||
# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER(1,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_M68K) && (defined(__mc68000__) || defined(mc68000) || defined(__mc68000))
|
||||
# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_M68K)
|
||||
# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_M68K
|
||||
# define MSGPACK_ARCH_M68K_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_M68K_NAME "Motorola 68k"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_M68K,MSGPACK_ARCH_M68K_NAME)
|
||||
|
||||
|
||||
#endif
|
74
include/msgpack/predef/architecture/mips.h
Normal file
74
include/msgpack/predef/architecture/mips.h
Normal file
@ -0,0 +1,74 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_MIPS_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_MIPS_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_MIPS`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/MIPS_architecture MIPS] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__mips__`] [__predef_detection__]]
|
||||
[[`__mips`] [__predef_detection__]]
|
||||
[[`__MIPS__`] [__predef_detection__]]
|
||||
|
||||
[[`__mips`] [V.0.0]]
|
||||
[[`_MIPS_ISA_MIPS1`] [1.0.0]]
|
||||
[[`_R3000`] [1.0.0]]
|
||||
[[`_MIPS_ISA_MIPS2`] [2.0.0]]
|
||||
[[`__MIPS_ISA2__`] [2.0.0]]
|
||||
[[`_R4000`] [2.0.0]]
|
||||
[[`_MIPS_ISA_MIPS3`] [3.0.0]]
|
||||
[[`__MIPS_ISA3__`] [3.0.0]]
|
||||
[[`_MIPS_ISA_MIPS4`] [4.0.0]]
|
||||
[[`__MIPS_ISA4__`] [4.0.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__mips__) || defined(__mips) || \
|
||||
defined(__MIPS__)
|
||||
# undef MSGPACK_ARCH_MIPS
|
||||
# if !defined(MSGPACK_ARCH_MIPS) && (defined(__mips))
|
||||
# define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER(__mips,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS1) || defined(_R3000))
|
||||
# define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER(1,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS2) || defined(__MIPS_ISA2__) || defined(_R4000))
|
||||
# define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER(2,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS3) || defined(__MIPS_ISA3__))
|
||||
# define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER(3,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS4) || defined(__MIPS_ISA4__))
|
||||
# define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER(4,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_MIPS)
|
||||
# define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_MIPS
|
||||
# define MSGPACK_ARCH_MIPS_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_MIPS_NAME "MIPS"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_MIPS,MSGPACK_ARCH_MIPS_NAME)
|
||||
|
||||
|
||||
#endif
|
65
include/msgpack/predef/architecture/parisc.h
Normal file
65
include/msgpack/predef/architecture/parisc.h
Normal file
@ -0,0 +1,65 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_PARISC_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_PARISC_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_PARISK`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/PA-RISC_family HP/PA RISC] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__hppa__`] [__predef_detection__]]
|
||||
[[`__hppa`] [__predef_detection__]]
|
||||
[[`__HPPA__`] [__predef_detection__]]
|
||||
|
||||
[[`_PA_RISC1_0`] [1.0.0]]
|
||||
[[`_PA_RISC1_1`] [1.1.0]]
|
||||
[[`__HPPA11__`] [1.1.0]]
|
||||
[[`__PA7100__`] [1.1.0]]
|
||||
[[`_PA_RISC2_0`] [2.0.0]]
|
||||
[[`__RISC2_0__`] [2.0.0]]
|
||||
[[`__HPPA20__`] [2.0.0]]
|
||||
[[`__PA8000__`] [2.0.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_PARISC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__hppa__) || defined(__hppa) || defined(__HPPA__)
|
||||
# undef MSGPACK_ARCH_PARISC
|
||||
# if !defined(MSGPACK_ARCH_PARISC) && (defined(_PA_RISC1_0))
|
||||
# define MSGPACK_ARCH_PARISC MSGPACK_VERSION_NUMBER(1,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_PARISC) && (defined(_PA_RISC1_1) || defined(__HPPA11__) || defined(__PA7100__))
|
||||
# define MSGPACK_ARCH_PARISC MSGPACK_VERSION_NUMBER(1,1,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_PARISC) && (defined(_PA_RISC2_0) || defined(__RISC2_0__) || defined(__HPPA20__) || defined(__PA8000__))
|
||||
# define MSGPACK_ARCH_PARISC MSGPACK_VERSION_NUMBER(2,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_PARISC)
|
||||
# define MSGPACK_ARCH_PARISC MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_PARISC
|
||||
# define MSGPACK_ARCH_PARISC_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_PARISC_NAME "HP/PA RISC"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_PARISC,MSGPACK_ARCH_PARISC_NAME)
|
||||
|
||||
|
||||
#endif
|
73
include/msgpack/predef/architecture/ppc.h
Normal file
73
include/msgpack/predef/architecture/ppc.h
Normal file
@ -0,0 +1,73 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_PPC_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_PPC_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_PPC`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/PowerPC PowerPC] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__powerpc`] [__predef_detection__]]
|
||||
[[`__powerpc__`] [__predef_detection__]]
|
||||
[[`__POWERPC__`] [__predef_detection__]]
|
||||
[[`__ppc__`] [__predef_detection__]]
|
||||
[[`_M_PPC`] [__predef_detection__]]
|
||||
[[`_ARCH_PPC`] [__predef_detection__]]
|
||||
[[`__PPCGECKO__`] [__predef_detection__]]
|
||||
[[`__PPCBROADWAY__`] [__predef_detection__]]
|
||||
[[`_XENON`] [__predef_detection__]]
|
||||
|
||||
[[`__ppc601__`] [6.1.0]]
|
||||
[[`_ARCH_601`] [6.1.0]]
|
||||
[[`__ppc603__`] [6.3.0]]
|
||||
[[`_ARCH_603`] [6.3.0]]
|
||||
[[`__ppc604__`] [6.4.0]]
|
||||
[[`__ppc604__`] [6.4.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_PPC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__powerpc) || defined(__powerpc__) || \
|
||||
defined(__POWERPC__) || defined(__ppc__) || \
|
||||
defined(_M_PPC) || defined(_ARCH_PPC) || \
|
||||
defined(__PPCGECKO__) || defined(__PPCBROADWAY__) || \
|
||||
defined(_XENON)
|
||||
# undef MSGPACK_ARCH_PPC
|
||||
# if !defined (MSGPACK_ARCH_PPC) && (defined(__ppc601__) || defined(_ARCH_601))
|
||||
# define MSGPACK_ARCH_PPC MSGPACK_VERSION_NUMBER(6,1,0)
|
||||
# endif
|
||||
# if !defined (MSGPACK_ARCH_PPC) && (defined(__ppc603__) || defined(_ARCH_603))
|
||||
# define MSGPACK_ARCH_PPC MSGPACK_VERSION_NUMBER(6,3,0)
|
||||
# endif
|
||||
# if !defined (MSGPACK_ARCH_PPC) && (defined(__ppc604__) || defined(__ppc604__))
|
||||
# define MSGPACK_ARCH_PPC MSGPACK_VERSION_NUMBER(6,4,0)
|
||||
# endif
|
||||
# if !defined (MSGPACK_ARCH_PPC)
|
||||
# define MSGPACK_ARCH_PPC MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_PPC
|
||||
# define MSGPACK_ARCH_PPC_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_PPC_NAME "PowerPC"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_PPC,MSGPACK_ARCH_PPC_NAME)
|
||||
|
||||
|
||||
#endif
|
43
include/msgpack/predef/architecture/pyramid.h
Normal file
43
include/msgpack/predef/architecture/pyramid.h
Normal file
@ -0,0 +1,43 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2011-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_PYRAMID_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_PYRAMID_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_PYRAMID`]
|
||||
|
||||
Pyramid 9810 architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`pyr`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_PYRAMID MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(pyr)
|
||||
# undef MSGPACK_ARCH_PYRAMID
|
||||
# define MSGPACK_ARCH_PYRAMID MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_PYRAMID
|
||||
# define MSGPACK_ARCH_PYRAMID_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_PYRAMID_NAME "Pyramid 9810"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_PYRAMID,MSGPACK_ARCH_PYRAMID_NAME)
|
||||
|
||||
|
||||
#endif
|
56
include/msgpack/predef/architecture/rs6k.h
Normal file
56
include/msgpack/predef/architecture/rs6k.h
Normal file
@ -0,0 +1,56 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_RS6K_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_RS6K_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_RS6000`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/RS/6000 RS/6000] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__THW_RS6000`] [__predef_detection__]]
|
||||
[[`_IBMR2`] [__predef_detection__]]
|
||||
[[`_POWER`] [__predef_detection__]]
|
||||
[[`_ARCH_PWR`] [__predef_detection__]]
|
||||
[[`_ARCH_PWR2`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_RS6000 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__THW_RS6000) || defined(_IBMR2) || \
|
||||
defined(_POWER) || defined(_ARCH_PWR) || \
|
||||
defined(_ARCH_PWR2)
|
||||
# undef MSGPACK_ARCH_RS6000
|
||||
# define MSGPACK_ARCH_RS6000 MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_RS6000
|
||||
# define MSGPACK_ARCH_RS6000_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_RS6000_NAME "RS/6000"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_RS6000,MSGPACK_ARCH_RS6000_NAME)
|
||||
|
||||
#define MSGPACK_ARCH_PWR MSGPACK_ARCH_RS6000
|
||||
|
||||
#if MSGPACK_ARCH_PWR
|
||||
# define MSGPACK_ARCH_PWR_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_PWR_NAME MSGPACK_ARCH_RS6000_NAME
|
||||
|
||||
#endif
|
55
include/msgpack/predef/architecture/sparc.h
Normal file
55
include/msgpack/predef/architecture/sparc.h
Normal file
@ -0,0 +1,55 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_SPARC_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_SPARC_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_SPARC`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/SPARC SPARC] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__sparc__`] [__predef_detection__]]
|
||||
[[`__sparc`] [__predef_detection__]]
|
||||
|
||||
[[`__sparcv9`] [9.0.0]]
|
||||
[[`__sparcv8`] [8.0.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_SPARC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__sparc__) || defined(__sparc)
|
||||
# undef MSGPACK_ARCH_SPARC
|
||||
# if !defined(MSGPACK_ARCH_SPARC) && defined(__sparcv9)
|
||||
# define MSGPACK_ARCH_SPARC MSGPACK_VERSION_NUMBER(9,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_SPARC) && defined(__sparcv8)
|
||||
# define MSGPACK_ARCH_SPARC MSGPACK_VERSION_NUMBER(8,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_SPARC)
|
||||
# define MSGPACK_ARCH_SPARC MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_SPARC
|
||||
# define MSGPACK_ARCH_SPARC_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_SPARC_NAME "SPARC"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_SPARC,MSGPACK_ARCH_SPARC_NAME)
|
||||
|
||||
|
||||
#endif
|
68
include/msgpack/predef/architecture/superh.h
Normal file
68
include/msgpack/predef/architecture/superh.h
Normal file
@ -0,0 +1,68 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_SUPERH_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_SUPERH_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_SH`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/SuperH SuperH] architecture:
|
||||
If available versions \[1-5\] are specifically detected.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__sh__`] [__predef_detection__]]
|
||||
|
||||
[[`__SH5__`] [5.0.0]]
|
||||
[[`__SH4__`] [4.0.0]]
|
||||
[[`__sh3__`] [3.0.0]]
|
||||
[[`__SH3__`] [3.0.0]]
|
||||
[[`__sh2__`] [2.0.0]]
|
||||
[[`__sh1__`] [1.0.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__sh__)
|
||||
# undef MSGPACK_ARCH_SH
|
||||
# if !defined(MSGPACK_ARCH_SH) && (defined(__SH5__))
|
||||
# define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER(5,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_SH) && (defined(__SH4__))
|
||||
# define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER(4,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_SH) && (defined(__sh3__) || defined(__SH3__))
|
||||
# define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER(3,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_SH) && (defined(__sh2__))
|
||||
# define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER(2,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_SH) && (defined(__sh1__))
|
||||
# define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER(1,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_SH)
|
||||
# define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_SH
|
||||
# define MSGPACK_ARCH_SH_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_SH_NAME "SuperH"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_SH,MSGPACK_ARCH_SH_NAME)
|
||||
|
||||
|
||||
#endif
|
44
include/msgpack/predef/architecture/sys370.h
Normal file
44
include/msgpack/predef/architecture/sys370.h
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_SYS370_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_SYS370_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_SYS370`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/System/370 System/370] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__370__`] [__predef_detection__]]
|
||||
[[`__THW_370__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_SYS370 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__370__) || defined(__THW_370__)
|
||||
# undef MSGPACK_ARCH_SYS370
|
||||
# define MSGPACK_ARCH_SYS370 MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_SYS370
|
||||
# define MSGPACK_ARCH_SYS370_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_SYS370_NAME "System/370"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_SYS370,MSGPACK_ARCH_SYS370_NAME)
|
||||
|
||||
|
||||
#endif
|
44
include/msgpack/predef/architecture/sys390.h
Normal file
44
include/msgpack/predef/architecture/sys390.h
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_SYS390_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_SYS390_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_SYS390`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/System/390 System/390] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__s390__`] [__predef_detection__]]
|
||||
[[`__s390x__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_SYS390 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__s390__) || defined(__s390x__)
|
||||
# undef MSGPACK_ARCH_SYS390
|
||||
# define MSGPACK_ARCH_SYS390 MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_SYS390
|
||||
# define MSGPACK_ARCH_SYS390_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_SYS390_NAME "System/390"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_SYS390,MSGPACK_ARCH_SYS390_NAME)
|
||||
|
||||
|
||||
#endif
|
38
include/msgpack/predef/architecture/x86.h
Normal file
38
include/msgpack/predef/architecture/x86.h
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_X86_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_X86_H
|
||||
|
||||
#include <msgpack/predef/architecture/x86/32.h>
|
||||
#include <msgpack/predef/architecture/x86/64.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_X86`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/X86 Intel x86] architecture. This is
|
||||
a category to indicate that either `MSGPACK_ARCH_X86_32` or
|
||||
`MSGPACK_ARCH_X86_64` is detected.
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_X86 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if MSGPACK_ARCH_X86_32 || MSGPACK_ARCH_X86_64
|
||||
# undef MSGPACK_ARCH_X86
|
||||
# define MSGPACK_ARCH_X86 MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_X86
|
||||
# define MSGPACK_ARCH_X86_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_X86_NAME "Intel x86"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_X86,MSGPACK_ARCH_X86_NAME)
|
||||
|
||||
#endif
|
87
include/msgpack/predef/architecture/x86/32.h
Normal file
87
include/msgpack/predef/architecture/x86/32.h
Normal file
@ -0,0 +1,87 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_X86_32_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_X86_32_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_X86_32`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/X86 Intel x86] architecture:
|
||||
If available versions \[3-6\] are specifically detected.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`i386`] [__predef_detection__]]
|
||||
[[`__i386__`] [__predef_detection__]]
|
||||
[[`__i486__`] [__predef_detection__]]
|
||||
[[`__i586__`] [__predef_detection__]]
|
||||
[[`__i686__`] [__predef_detection__]]
|
||||
[[`__i386`] [__predef_detection__]]
|
||||
[[`_M_IX86`] [__predef_detection__]]
|
||||
[[`_X86_`] [__predef_detection__]]
|
||||
[[`__THW_INTEL__`] [__predef_detection__]]
|
||||
[[`__I86__`] [__predef_detection__]]
|
||||
[[`__INTEL__`] [__predef_detection__]]
|
||||
|
||||
[[`__I86__`] [V.0.0]]
|
||||
[[`_M_IX86`] [V.0.0]]
|
||||
[[`__i686__`] [6.0.0]]
|
||||
[[`__i586__`] [5.0.0]]
|
||||
[[`__i486__`] [4.0.0]]
|
||||
[[`__i386__`] [3.0.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(i386) || defined(__i386__) || \
|
||||
defined(__i486__) || defined(__i586__) || \
|
||||
defined(__i686__) || defined(__i386) || \
|
||||
defined(_M_IX86) || defined(_X86_) || \
|
||||
defined(__THW_INTEL__) || defined(__I86__) || \
|
||||
defined(__INTEL__)
|
||||
# undef MSGPACK_ARCH_X86_32
|
||||
# if !defined(MSGPACK_ARCH_X86_32) && defined(__I86__)
|
||||
# define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER(__I86__,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_X86_32) && defined(_M_IX86)
|
||||
# define MSGPACK_ARCH_X86_32 MSGPACK_PREDEF_MAKE_10_VV00(_M_IX86)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_X86_32) && defined(__i686__)
|
||||
# define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER(6,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_X86_32) && defined(__i586__)
|
||||
# define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER(5,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_X86_32) && defined(__i486__)
|
||||
# define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER(4,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_X86_32) && defined(__i386__)
|
||||
# define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER(3,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_ARCH_X86_32)
|
||||
# define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_X86_32
|
||||
# define MSGPACK_ARCH_X86_32_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_X86_32_NAME "Intel x86-32"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_X86_32,MSGPACK_ARCH_X86_32_NAME)
|
||||
|
||||
#include <msgpack/predef/architecture/x86.h>
|
||||
|
||||
#endif
|
50
include/msgpack/predef/architecture/x86/64.h
Normal file
50
include/msgpack/predef/architecture/x86/64.h
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_X86_64_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_X86_64_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_X86_64`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Ia64 Intel IA-64] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__x86_64`] [__predef_detection__]]
|
||||
[[`__x86_64__`] [__predef_detection__]]
|
||||
[[`__amd64__`] [__predef_detection__]]
|
||||
[[`__amd64`] [__predef_detection__]]
|
||||
[[`_M_X64`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_X86_64 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__x86_64) || defined(__x86_64__) || \
|
||||
defined(__amd64__) || defined(__amd64) || \
|
||||
defined(_M_X64)
|
||||
# undef MSGPACK_ARCH_X86_64
|
||||
# define MSGPACK_ARCH_X86_64 MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_X86_64
|
||||
# define MSGPACK_ARCH_X86_64_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_X86_64_NAME "Intel x86-64"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_X86_64,MSGPACK_ARCH_X86_64_NAME)
|
||||
|
||||
#include <msgpack/predef/architecture/x86.h>
|
||||
|
||||
#endif
|
43
include/msgpack/predef/architecture/z.h
Normal file
43
include/msgpack/predef/architecture/z.h
Normal file
@ -0,0 +1,43 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_ARCHITECTURE_Z_H
|
||||
#define MSGPACK_PREDEF_ARCHITECTURE_Z_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_ARCH_Z`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Z/Architecture z/Architecture] architecture.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__SYSC_ZARCH__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_ARCH_Z MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__SYSC_ZARCH__)
|
||||
# undef MSGPACK_ARCH_Z
|
||||
# define MSGPACK_ARCH_Z MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_ARCH_Z
|
||||
# define MSGPACK_ARCH_Z_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_ARCH_Z_NAME "z/Architecture"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_Z,MSGPACK_ARCH_Z_NAME)
|
||||
|
||||
|
||||
#endif
|
41
include/msgpack/predef/compiler.h
Normal file
41
include/msgpack/predef/compiler.h
Normal file
@ -0,0 +1,41 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_H
|
||||
#define MSGPACK_PREDEF_COMPILER_H
|
||||
|
||||
#include <msgpack/predef/compiler/borland.h>
|
||||
#include <msgpack/predef/compiler/clang.h>
|
||||
#include <msgpack/predef/compiler/comeau.h>
|
||||
#include <msgpack/predef/compiler/compaq.h>
|
||||
#include <msgpack/predef/compiler/diab.h>
|
||||
#include <msgpack/predef/compiler/digitalmars.h>
|
||||
#include <msgpack/predef/compiler/dignus.h>
|
||||
#include <msgpack/predef/compiler/edg.h>
|
||||
#include <msgpack/predef/compiler/ekopath.h>
|
||||
#include <msgpack/predef/compiler/gcc_xml.h>
|
||||
#include <msgpack/predef/compiler/gcc.h>
|
||||
#include <msgpack/predef/compiler/greenhills.h>
|
||||
#include <msgpack/predef/compiler/hp_acc.h>
|
||||
#include <msgpack/predef/compiler/iar.h>
|
||||
#include <msgpack/predef/compiler/ibm.h>
|
||||
#include <msgpack/predef/compiler/intel.h>
|
||||
#include <msgpack/predef/compiler/kai.h>
|
||||
#include <msgpack/predef/compiler/llvm.h>
|
||||
#include <msgpack/predef/compiler/metaware.h>
|
||||
#include <msgpack/predef/compiler/metrowerks.h>
|
||||
#include <msgpack/predef/compiler/microtec.h>
|
||||
#include <msgpack/predef/compiler/mpw.h>
|
||||
#include <msgpack/predef/compiler/palm.h>
|
||||
#include <msgpack/predef/compiler/pgi.h>
|
||||
#include <msgpack/predef/compiler/sgi_mipspro.h>
|
||||
#include <msgpack/predef/compiler/sunpro.h>
|
||||
#include <msgpack/predef/compiler/tendra.h>
|
||||
#include <msgpack/predef/compiler/visualc.h>
|
||||
#include <msgpack/predef/compiler/watcom.h>
|
||||
|
||||
#endif
|
64
include/msgpack/predef/compiler/borland.h
Normal file
64
include/msgpack/predef/compiler/borland.h
Normal file
@ -0,0 +1,64 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_BORLAND_H
|
||||
#define MSGPACK_PREDEF_COMPILER_BORLAND_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_BORLAND`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/C_plus_plus_builder Borland C++] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__BORLANDC__`] [__predef_detection__]]
|
||||
[[`__CODEGEARC__`] [__predef_detection__]]
|
||||
|
||||
[[`__BORLANDC__`] [V.R.P]]
|
||||
[[`__CODEGEARC__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_BORLAND MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__BORLANDC__) || defined(__CODEGEARC__)
|
||||
# if !defined(MSGPACK_COMP_BORLAND_DETECTION) && (defined(__CODEGEARC__))
|
||||
# define MSGPACK_COMP_BORLAND_DETECTION MSGPACK_PREDEF_MAKE_0X_VVRP(__CODEGEARC__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_BORLAND_DETECTION)
|
||||
# define MSGPACK_COMP_BORLAND_DETECTION MSGPACK_PREDEF_MAKE_0X_VVRP(__BORLANDC__)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_BORLAND_DETECTION
|
||||
# define MSGPACK_COMP_BORLAND_AVAILABLE
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_BORLAND_EMULATED MSGPACK_COMP_BORLAND_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_BORLAND
|
||||
# define MSGPACK_COMP_BORLAND MSGPACK_COMP_BORLAND_DETECTION
|
||||
# endif
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_BORLAND_NAME "Borland C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_BORLAND,MSGPACK_COMP_BORLAND_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_BORLAND_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_BORLAND_EMULATED,MSGPACK_COMP_BORLAND_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
57
include/msgpack/predef/compiler/clang.h
Normal file
57
include/msgpack/predef/compiler/clang.h
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_CLANG_H
|
||||
#define MSGPACK_PREDEF_COMPILER_CLANG_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_CLANG`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Clang Clang] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__clang__`] [__predef_detection__]]
|
||||
|
||||
[[`__clang_major__`, `__clang_minor__`, `__clang_patchlevel__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_CLANG MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__clang__)
|
||||
# define MSGPACK_COMP_CLANG_DETECTION MSGPACK_VERSION_NUMBER(__clang_major__,__clang_minor__,__clang_patchlevel__)
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_CLANG_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_CLANG_EMULATED MSGPACK_COMP_CLANG_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_CLANG
|
||||
# define MSGPACK_COMP_CLANG MSGPACK_COMP_CLANG_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_CLANG_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_CLANG_NAME "Clang"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_CLANG,MSGPACK_COMP_CLANG_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_CLANG_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_CLANG_EMULATED,MSGPACK_COMP_CLANG_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
62
include/msgpack/predef/compiler/comeau.h
Normal file
62
include/msgpack/predef/compiler/comeau.h
Normal file
@ -0,0 +1,62 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_COMEAU_H
|
||||
#define MSGPACK_PREDEF_COMPILER_COMEAU_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
#define MSGPACK_COMP_COMO MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_COMO`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Comeau_C/C%2B%2B Comeau C++] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__COMO__`] [__predef_detection__]]
|
||||
|
||||
[[`__COMO_VERSION__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#if defined(__COMO__)
|
||||
# if !defined(MSGPACK_COMP_COMO_DETECTION) && defined(__CONO_VERSION__)
|
||||
# define MSGPACK_COMP_COMO_DETECTION MSGPACK_PREDEF_MAKE_0X_VRP(__COMO_VERSION__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_COMO_DETECTION)
|
||||
# define MSGPACK_COMP_COMO_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_COMO_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_COMO_EMULATED MSGPACK_COMP_COMO_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_COMO
|
||||
# define MSGPACK_COMP_COMO MSGPACK_COMP_COMO_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_COMO_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_COMO_NAME "Comeau C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_COMO,MSGPACK_COMP_COMO_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_COMO_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_COMO_EMULATED,MSGPACK_COMP_COMO_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
67
include/msgpack/predef/compiler/compaq.h
Normal file
67
include/msgpack/predef/compiler/compaq.h
Normal file
@ -0,0 +1,67 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_COMPAQ_H
|
||||
#define MSGPACK_PREDEF_COMPILER_COMPAQ_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_DEC`]
|
||||
|
||||
[@http://www.openvms.compaq.com/openvms/brochures/deccplus/ Compaq C/C++] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__DECCXX`] [__predef_detection__]]
|
||||
[[`__DECC`] [__predef_detection__]]
|
||||
|
||||
[[`__DECCXX_VER`] [V.R.P]]
|
||||
[[`__DECC_VER`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_DEC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__DECC) || defined(__DECCXX)
|
||||
# if !defined(MSGPACK_COMP_DEC_DETECTION) && defined(__DECCXX_VER)
|
||||
# define MSGPACK_COMP_DEC_DETECTION MSGPACK_PREDEF_MAKE_10_VVRR0PP00(__DECCXX_VER)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_DEC_DETECTION) && defined(__DECC_VER)
|
||||
# define MSGPACK_COMP_DEC_DETECTION MSGPACK_PREDEF_MAKE_10_VVRR0PP00(__DECC_VER)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_DEC_DETECTION)
|
||||
# define MSGPACK_COM_DEC_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_DEC_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_DEC_EMULATED MSGPACK_COMP_DEC_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_DEC
|
||||
# define MSGPACK_COMP_DEC MSGPACK_COMP_DEC_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_DEC_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_DEC_NAME "Compaq C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_DEC,MSGPACK_COMP_DEC_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_DEC_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_DEC_EMULATED,MSGPACK_COMP_DEC_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
57
include/msgpack/predef/compiler/diab.h
Normal file
57
include/msgpack/predef/compiler/diab.h
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_DIAB_H
|
||||
#define MSGPACK_PREDEF_COMPILER_DIAB_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_DIAB`]
|
||||
|
||||
[@http://www.windriver.com/products/development_suite/wind_river_compiler/ Diab C/C++] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__DCC__`] [__predef_detection__]]
|
||||
|
||||
[[`__VERSION_NUMBER__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_DIAB MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__DCC__)
|
||||
# define MSGPACK_COMP_DIAB_DETECTION MSGPACK_PREDEF_MAKE_10_VRPP(__VERSION_NUMBER__)
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_DIAB_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_DIAB_EMULATED MSGPACK_COMP_DIAB_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_DIAB
|
||||
# define MSGPACK_COMP_DIAB MSGPACK_COMP_DIAB_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_DIAB_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_DIAB_NAME "Diab C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_DIAB,MSGPACK_COMP_DIAB_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_DIAB_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_DIAB_EMULATED,MSGPACK_COMP_DIAB_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
57
include/msgpack/predef/compiler/digitalmars.h
Normal file
57
include/msgpack/predef/compiler/digitalmars.h
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_DIGITALMARS_H
|
||||
#define MSGPACK_PREDEF_COMPILER_DIGITALMARS_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_DMC`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Digital_Mars Digital Mars] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__DMC__`] [__predef_detection__]]
|
||||
|
||||
[[`__DMC__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_DMC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__DMC__)
|
||||
# define MSGPACK_COMP_DMC_DETECTION MSGPACK_PREDEF_MAKE_0X_VRP(__DMC__)
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_DMC_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_DMC_EMULATED MSGPACK_COMP_DMC_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_DMC
|
||||
# define MSGPACK_COMP_DMC MSGPACK_COMP_DMC_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_DMC_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_DMC_NAME "Digital Mars"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_DMC,MSGPACK_COMP_DMC_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_DMC_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_DMC_EMULATED,MSGPACK_COMP_DMC_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
57
include/msgpack/predef/compiler/dignus.h
Normal file
57
include/msgpack/predef/compiler/dignus.h
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_DIGNUS_H
|
||||
#define MSGPACK_PREDEF_COMPILER_DIGNUS_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_SYSC`]
|
||||
|
||||
[@http://www.dignus.com/dcxx/ Dignus Systems/C++] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__SYSC__`] [__predef_detection__]]
|
||||
|
||||
[[`__SYSC_VER__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_SYSC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__SYSC__)
|
||||
# define MSGPACK_COMP_SYSC_DETECTION MSGPACK_PREDEF_MAKE_10_VRRPP(__SYSC_VER__)
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_SYSC_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_SYSC_EMULATED MSGPACK_COMP_SYSC_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_SYSC
|
||||
# define MSGPACK_COMP_SYSC MSGPACK_COMP_SYSC_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_SYSC_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_SYSC_NAME "Dignus Systems/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SYSC,MSGPACK_COMP_SYSC_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_SYSC_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SYSC_EMULATED,MSGPACK_COMP_SYSC_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
57
include/msgpack/predef/compiler/edg.h
Normal file
57
include/msgpack/predef/compiler/edg.h
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_EDG_H
|
||||
#define MSGPACK_PREDEF_COMPILER_EDG_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_EDG`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Edison_Design_Group EDG C++ Frontend] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__EDG__`] [__predef_detection__]]
|
||||
|
||||
[[`__EDG_VERSION__`] [V.R.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_EDG MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__EDG__)
|
||||
# define MSGPACK_COMP_EDG_DETECTION MSGPACK_PREDEF_MAKE_10_VRR(__EDG_VERSION__)
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_EDG_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_EDG_EMULATED MSGPACK_COMP_EDG_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_EDG
|
||||
# define MSGPACK_COMP_EDG MSGPACK_COMP_EDG_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_EDG_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_EDG_NAME "EDG C++ Frontend"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_EDG,MSGPACK_COMP_EDG_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_EDG_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_EDG_EMULATED,MSGPACK_COMP_EDG_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
58
include/msgpack/predef/compiler/ekopath.h
Normal file
58
include/msgpack/predef/compiler/ekopath.h
Normal file
@ -0,0 +1,58 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_EKOPATH_H
|
||||
#define MSGPACK_PREDEF_COMPILER_EKOPATH_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_PATH`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/PathScale EKOpath] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__PATHCC__`] [__predef_detection__]]
|
||||
|
||||
[[`__PATHCC__`, `__PATHCC_MINOR__`, `__PATHCC_PATCHLEVEL__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_PATH MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__PATHCC__)
|
||||
# define MSGPACK_COMP_PATH_DETECTION \
|
||||
MSGPACK_VERSION_NUMBER(__PATHCC__,__PATHCC_MINOR__,__PATHCC_PATCHLEVEL__)
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_PATH_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_PATH_EMULATED MSGPACK_COMP_PATH_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_PATH
|
||||
# define MSGPACK_COMP_PATH MSGPACK_COMP_PATH_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_PATH_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_PATH_NAME "EKOpath"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_PATH,MSGPACK_COMP_PATH_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_PATH_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_PATH_EMULATED,MSGPACK_COMP_PATH_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
69
include/msgpack/predef/compiler/gcc.h
Normal file
69
include/msgpack/predef/compiler/gcc.h
Normal file
@ -0,0 +1,69 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_GCC_H
|
||||
#define MSGPACK_PREDEF_COMPILER_GCC_H
|
||||
|
||||
/* Other compilers that emulate this one need to be detected first. */
|
||||
|
||||
#include <msgpack/predef/compiler/clang.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_GNUC`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/GNU_Compiler_Collection Gnu GCC C/C++] compiler.
|
||||
Version number available as major, minor, and patch (if available).
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__GNUC__`] [__predef_detection__]]
|
||||
|
||||
[[`__GNUC__`, `__GNUC_MINOR__`, `__GNUC_PATCHLEVEL__`] [V.R.P]]
|
||||
[[`__GNUC__`, `__GNUC_MINOR__`] [V.R.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_GNUC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__GNUC__)
|
||||
# if !defined(MSGPACK_COMP_GNUC_DETECTION) && defined(__GNUC_PATCHLEVEL__)
|
||||
# define MSGPACK_COMP_GNUC_DETECTION \
|
||||
MSGPACK_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_GNUC_DETECTION)
|
||||
# define MSGPACK_COMP_GNUC_DETECTION \
|
||||
MSGPACK_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,0)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_GNUC_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_GNUC_EMULATED MSGPACK_COMP_GNUC_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_GNUC
|
||||
# define MSGPACK_COMP_GNUC MSGPACK_COMP_GNUC_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_GNUC_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_GNUC_NAME "Gnu GCC C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_GNUC,MSGPACK_COMP_GNUC_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_GNUC_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_GNUC_EMULATED,MSGPACK_COMP_GNUC_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
53
include/msgpack/predef/compiler/gcc_xml.h
Normal file
53
include/msgpack/predef/compiler/gcc_xml.h
Normal file
@ -0,0 +1,53 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_GCC_XML_H
|
||||
#define MSGPACK_PREDEF_COMPILER_GCC_XML_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_GCCXML`]
|
||||
|
||||
[@http://www.gccxml.org/ GCC XML] compiler.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__GCCXML__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_GCCXML MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__GCCXML__)
|
||||
# define MSGPACK_COMP_GCCXML_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_GCCXML_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_GCCXML_EMULATED MSGPACK_COMP_GCCXML_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_GCCXML
|
||||
# define MSGPACK_COMP_GCCXML MSGPACK_COMP_GCCXML_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_GCCXML_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_GCCXML_NAME "GCC XML"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_GCCXML,MSGPACK_COMP_GCCXML_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_GCCXML_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_GCCXML_EMULATED,MSGPACK_COMP_GCCXML_NAME)
|
||||
#endif
|
||||
|
||||
#endif
|
67
include/msgpack/predef/compiler/greenhills.h
Normal file
67
include/msgpack/predef/compiler/greenhills.h
Normal file
@ -0,0 +1,67 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_GREENHILLS_H
|
||||
#define MSGPACK_PREDEF_COMPILER_GREENHILLS_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_GHS`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Green_Hills_Software Green Hills C/C++] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__ghs`] [__predef_detection__]]
|
||||
[[`__ghs__`] [__predef_detection__]]
|
||||
|
||||
[[`__GHS_VERSION_NUMBER__`] [V.R.P]]
|
||||
[[`__ghs`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_GHS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__ghs) || defined(__ghs__)
|
||||
# if !defined(MSGPACK_COMP_GHS_DETECTION) && defined(__GHS_VERSION_NUMBER__)
|
||||
# define MSGPACK_COMP_GHS_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(__GHS_VERSION_NUMBER__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_GHS_DETECTION) && defined(__ghs)
|
||||
# define MSGPACK_COMP_GHS_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(__ghs)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_GHS_DETECTION)
|
||||
# define MSGPACK_COMP_GHS_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_GHS_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_GHS_EMULATED MSGPACK_COMP_GHS_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_GHS
|
||||
# define MSGPACK_COMP_GHS MSGPACK_COMP_GHS_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_GHS_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_GHS_NAME "Green Hills C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_GHS,MSGPACK_COMP_GHS_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_GHS_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_GHS_EMULATED,MSGPACK_COMP_GHS_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
62
include/msgpack/predef/compiler/hp_acc.h
Normal file
62
include/msgpack/predef/compiler/hp_acc.h
Normal file
@ -0,0 +1,62 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_HP_ACC_H
|
||||
#define MSGPACK_PREDEF_COMPILER_HP_ACC_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_HPACC`]
|
||||
|
||||
HP aC++ compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__HP_aCC`] [__predef_detection__]]
|
||||
|
||||
[[`__HP_aCC`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_HPACC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__HP_aCC)
|
||||
# if !defined(MSGPACK_COMP_HPACC_DETECTION) && (__HP_aCC > 1)
|
||||
# define MSGPACK_COMP_HPACC_DETECTION MSGPACK_PREDEF_MAKE_10_VVRRPP(__HP_aCC)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_HPACC_DETECTION)
|
||||
# define MSGPACK_COMP_HPACC_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_HPACC_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_HPACC_EMULATED MSGPACK_COMP_HPACC_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_HPACC
|
||||
# define MSGPACK_COMP_HPACC MSGPACK_COMP_HPACC_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_HPACC_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_HPACC_NAME "HP aC++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_HPACC,MSGPACK_COMP_HPACC_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_HPACC_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_HPACC_EMULATED,MSGPACK_COMP_HPACC_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
57
include/msgpack/predef/compiler/iar.h
Normal file
57
include/msgpack/predef/compiler/iar.h
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_IAR_H
|
||||
#define MSGPACK_PREDEF_COMPILER_IAR_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_IAR`]
|
||||
|
||||
IAR C/C++ compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__IAR_SYSTEMS_ICC__`] [__predef_detection__]]
|
||||
|
||||
[[`__VER__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_IAR MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__IAR_SYSTEMS_ICC__)
|
||||
# define MSGPACK_COMP_IAR_DETECTION MSGPACK_PREDEF_MAKE_10_VVRR(__VER__)
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_IAR_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_IAR_EMULATED MSGPACK_COMP_IAR_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_IAR
|
||||
# define MSGPACK_COMP_IAR MSGPACK_COMP_IAR_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_IAR_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_IAR_NAME "IAR C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_IAR,MSGPACK_COMP_IAR_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_IAR_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_IAR_EMULATED,MSGPACK_COMP_IAR_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
73
include/msgpack/predef/compiler/ibm.h
Normal file
73
include/msgpack/predef/compiler/ibm.h
Normal file
@ -0,0 +1,73 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_IBM_H
|
||||
#define MSGPACK_PREDEF_COMPILER_IBM_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_IBM`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/VisualAge IBM XL C/C++] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__IBMCPP__`] [__predef_detection__]]
|
||||
[[`__xlC__`] [__predef_detection__]]
|
||||
[[`__xlc__`] [__predef_detection__]]
|
||||
|
||||
[[`__COMPILER_VER__`] [V.R.P]]
|
||||
[[`__xlC__`] [V.R.P]]
|
||||
[[`__xlc__`] [V.R.P]]
|
||||
[[`__IBMCPP__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_IBM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__IBMCPP__) || defined(__xlC__) || defined(__xlc__)
|
||||
# if !defined(MSGPACK_COMP_IBM_DETECTION) && defined(__COMPILER_VER__)
|
||||
# define MSGPACK_COMP_IBM_DETECTION MSGPACK_PREDEF_MAKE_0X_VRRPPPP(__COMPILER_VER__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_IBM_DETECTION) && defined(__xlC__)
|
||||
# define MSGPACK_COMP_IBM_DETECTION MSGPACK_PREDEF_MAKE_0X_VVRR(__xlC__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_IBM_DETECTION) && defined(__xlc__)
|
||||
# define MSGPACK_COMP_IBM_DETECTION MSGPACK_PREDEF_MAKE_0X_VVRR(__xlc__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_IBM_DETECTION)
|
||||
# define MSGPACK_COMP_IBM_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(__IBMCPP__)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_IBM_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_IBM_EMULATED MSGPACK_COMP_IBM_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_IBM
|
||||
# define MSGPACK_COMP_IBM MSGPACK_COMP_IBM_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_IBM_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_IBM_NAME "IBM XL C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_IBM,MSGPACK_COMP_IBM_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_IBM_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_IBM_EMULATED,MSGPACK_COMP_IBM_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
66
include/msgpack/predef/compiler/intel.h
Normal file
66
include/msgpack/predef/compiler/intel.h
Normal file
@ -0,0 +1,66 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_INTEL_H
|
||||
#define MSGPACK_PREDEF_COMPILER_INTEL_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_INTEL`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Intel_C%2B%2B Intel C/C++] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__INTEL_COMPILER`] [__predef_detection__]]
|
||||
[[`__ICL`] [__predef_detection__]]
|
||||
[[`__ICC`] [__predef_detection__]]
|
||||
[[`__ECC`] [__predef_detection__]]
|
||||
|
||||
[[`__INTEL_COMPILER`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_INTEL MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || \
|
||||
defined(__ECC)
|
||||
# if !defined(MSGPACK_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER)
|
||||
# define MSGPACK_COMP_INTEL_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(__INTEL_COMPILER)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_INTEL_DETECTION)
|
||||
# define MSGPACK_COMP_INTEL_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_INTEL_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_INTEL_EMULATED MSGPACK_COMP_INTEL_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_INTEL
|
||||
# define MSGPACK_COMP_INTEL MSGPACK_COMP_INTEL_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_INTEL_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_INTEL_NAME "Intel C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_INTEL,MSGPACK_COMP_INTEL_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_INTEL_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_INTEL_EMULATED,MSGPACK_COMP_INTEL_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
57
include/msgpack/predef/compiler/kai.h
Normal file
57
include/msgpack/predef/compiler/kai.h
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_KAI_H
|
||||
#define MSGPACK_PREDEF_COMPILER_KAI_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_KCC`]
|
||||
|
||||
Kai C++ compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__KCC`] [__predef_detection__]]
|
||||
|
||||
[[`__KCC_VERSION`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_KCC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__KCC)
|
||||
# define MSGPACK_COMP_KCC_DETECTION MSGPACK_PREDEF_MAKE_0X_VRPP(__KCC_VERSION)
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_KCC_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_KCC_EMULATED MSGPACK_COMP_KCC_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_KCC
|
||||
# define MSGPACK_COMP_KCC MSGPACK_COMP_KCC_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_KCC_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_KCC_NAME "Kai C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_KCC,MSGPACK_COMP_KCC_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_KCC_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_KCC_EMULATED,MSGPACK_COMP_KCC_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
58
include/msgpack/predef/compiler/llvm.h
Normal file
58
include/msgpack/predef/compiler/llvm.h
Normal file
@ -0,0 +1,58 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_LLVM_H
|
||||
#define MSGPACK_PREDEF_COMPILER_LLVM_H
|
||||
|
||||
/* Other compilers that emulate this one need to be detected first. */
|
||||
|
||||
#include <msgpack/predef/compiler/clang.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_LLVM`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/LLVM LLVM] compiler.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__llvm__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_LLVM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__llvm__)
|
||||
# define MSGPACK_COMP_LLVM_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_LLVM_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_LLVM_EMULATED MSGPACK_COMP_LLVM_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_LLVM
|
||||
# define MSGPACK_COMP_LLVM MSGPACK_COMP_LLVM_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_LLVM_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_LLVM_NAME "LLVM"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_LLVM,MSGPACK_COMP_LLVM_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_LLVM_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_LLVM_EMULATED,MSGPACK_COMP_LLVM_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
54
include/msgpack/predef/compiler/metaware.h
Normal file
54
include/msgpack/predef/compiler/metaware.h
Normal file
@ -0,0 +1,54 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_METAWARE_H
|
||||
#define MSGPACK_PREDEF_COMPILER_METAWARE_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_HIGHC`]
|
||||
|
||||
MetaWare High C/C++ compiler.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__HIGHC__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_HIGHC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__HIGHC__)
|
||||
# define MSGPACK_COMP_HIGHC_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_HIGHC_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_HIGHC_EMULATED MSGPACK_COMP_HIGHC_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_HIGHC
|
||||
# define MSGPACK_COMP_HIGHC MSGPACK_COMP_HIGHC_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_HIGHC_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_HIGHC_NAME "MetaWare High C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_HIGHC,MSGPACK_COMP_HIGHC_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_HIGHC_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_HIGHC_EMULATED,MSGPACK_COMP_HIGHC_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
78
include/msgpack/predef/compiler/metrowerks.h
Normal file
78
include/msgpack/predef/compiler/metrowerks.h
Normal file
@ -0,0 +1,78 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_METROWERKS_H
|
||||
#define MSGPACK_PREDEF_COMPILER_METROWERKS_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_MWERKS`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/CodeWarrior Metrowerks CodeWarrior] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__MWERKS__`] [__predef_detection__]]
|
||||
[[`__CWCC__`] [__predef_detection__]]
|
||||
|
||||
[[`__CWCC__`] [V.R.P]]
|
||||
[[`__MWERKS__`] [V.R.P >= 4.2.0]]
|
||||
[[`__MWERKS__`] [9.R.0]]
|
||||
[[`__MWERKS__`] [8.R.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_MWERKS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__MWERKS__) || defined(__CWCC__)
|
||||
# if !defined(MSGPACK_COMP_MWERKS_DETECTION) && defined(__CWCC__)
|
||||
# define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_PREDEF_MAKE_0X_VRPP(__CWCC__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x4200)
|
||||
# define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_PREDEF_MAKE_0X_VRPP(__MWERKS__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3204) // note the "skip": 04->9.3
|
||||
# define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_VERSION_NUMBER(9,(__MWERKS__)%100-1,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3200)
|
||||
# define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_VERSION_NUMBER(9,(__MWERKS__)%100,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3000)
|
||||
# define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_VERSION_NUMBER(8,(__MWERKS__)%100,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_MWERKS_DETECTION)
|
||||
# define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_MWERKS_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_MWERKS_EMULATED MSGPACK_COMP_MWERKS_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_MWERKS
|
||||
# define MSGPACK_COMP_MWERKS MSGPACK_COMP_MWERKS_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_MWERKS_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_MWERKS_NAME "Metrowerks CodeWarrior"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MWERKS,MSGPACK_COMP_MWERKS_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_MWERKS_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MWERKS_EMULATED,MSGPACK_COMP_MWERKS_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
54
include/msgpack/predef/compiler/microtec.h
Normal file
54
include/msgpack/predef/compiler/microtec.h
Normal file
@ -0,0 +1,54 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_MICROTEC_H
|
||||
#define MSGPACK_PREDEF_COMPILER_MICROTEC_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_MRI`]
|
||||
|
||||
[@http://www.mentor.com/microtec/ Microtec C/C++] compiler.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`_MRI`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_MRI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(_MRI)
|
||||
# define MSGPACK_COMP_MRI_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_MRI_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_MRI_EMULATED MSGPACK_COMP_MRI_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_MRI
|
||||
# define MSGPACK_COMP_MRI MSGPACK_COMP_MRI_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_MRI_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_MRI_NAME "Microtec C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MRI,MSGPACK_COMP_MRI_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_MRI_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MRI_EMULATED,MSGPACK_COMP_MRI_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
64
include/msgpack/predef/compiler/mpw.h
Normal file
64
include/msgpack/predef/compiler/mpw.h
Normal file
@ -0,0 +1,64 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_MPW_H
|
||||
#define MSGPACK_PREDEF_COMPILER_MPW_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_MPW`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Macintosh_Programmer%27s_Workshop MPW C++] compiler.
|
||||
Version number available as major, and minor.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__MRC__`] [__predef_detection__]]
|
||||
[[`MPW_C`] [__predef_detection__]]
|
||||
[[`MPW_CPLUS`] [__predef_detection__]]
|
||||
|
||||
[[`__MRC__`] [V.R.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_MPW MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS)
|
||||
# if !defined(MSGPACK_COMP_MPW_DETECTION) && defined(__MRC__)
|
||||
# define MSGPACK_COMP_MPW_DETECTION MSGPACK_PREDEF_MAKE_0X_VVRR(__MRC__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_MPW_DETECTION)
|
||||
# define MSGPACK_COMP_MPW_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_MPW_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_MPW_EMULATED MSGPACK_COMP_MPW_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_MPW
|
||||
# define MSGPACK_COMP_MPW MSGPACK_COMP_MPW_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_MPW_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_MPW_NAME "MPW C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MPW,MSGPACK_COMP_MPW_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_MPW_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MPW_EMULATED,MSGPACK_COMP_MPW_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
57
include/msgpack/predef/compiler/palm.h
Normal file
57
include/msgpack/predef/compiler/palm.h
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_PALM_H
|
||||
#define MSGPACK_PREDEF_COMPILER_PALM_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_PALM`]
|
||||
|
||||
Palm C/C++ compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`_PACC_VER`] [__predef_detection__]]
|
||||
|
||||
[[`_PACC_VER`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_PALM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(_PACC_VER)
|
||||
# define MSGPACK_COMP_PALM_DETECTION MSGPACK_PREDEF_MAKE_0X_VRRPP000(_PACC_VER)
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_PALM_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_PALM_EMULATED MSGPACK_COMP_PALM_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_PALM
|
||||
# define MSGPACK_COMP_PALM MSGPACK_COMP_PALM_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_PALM_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_PALM_NAME "Palm C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_PALM,MSGPACK_COMP_PALM_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_PALM_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_PALM_EMULATED,MSGPACK_COMP_PALM_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
61
include/msgpack/predef/compiler/pgi.h
Normal file
61
include/msgpack/predef/compiler/pgi.h
Normal file
@ -0,0 +1,61 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_PGI_H
|
||||
#define MSGPACK_PREDEF_COMPILER_PGI_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_PGI`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/The_Portland_Group Portland Group C/C++] compiler.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__PGI`] [__predef_detection__]]
|
||||
|
||||
[[`__PGIC__`, `__PGIC_MINOR__`, `__PGIC_PATCHLEVEL__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_PGI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__PGI)
|
||||
# if !defined(MSGPACK_COMP_PGI_DETECTION) && (defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__))
|
||||
# define MSGPACK_COMP_PGI_DETECTION MSGPACK_VERSION_NUMBER(__PGIC__,__PGIC_MINOR__,__PGIC_PATCHLEVEL__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_PGI_DETECTION)
|
||||
# define MSGPACK_COMP_PGI_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_PGI_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_PGI_EMULATED MSGPACK_COMP_PGI_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_PGI
|
||||
# define MSGPACK_COMP_PGI MSGPACK_COMP_PGI_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_PGI_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_PGI_NAME "Portland Group C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_PGI,MSGPACK_COMP_PGI_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_PGI_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_PGI_EMULATED,MSGPACK_COMP_PGI_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
67
include/msgpack/predef/compiler/sgi_mipspro.h
Normal file
67
include/msgpack/predef/compiler/sgi_mipspro.h
Normal file
@ -0,0 +1,67 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_SGI_MIPSPRO_H
|
||||
#define MSGPACK_PREDEF_COMPILER_SGI_MIPSPRO_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_SGI`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/MIPSpro SGI MIPSpro] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__sgi`] [__predef_detection__]]
|
||||
[[`sgi`] [__predef_detection__]]
|
||||
|
||||
[[`_SGI_COMPILER_VERSION`] [V.R.P]]
|
||||
[[`_COMPILER_VERSION`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_SGI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__sgi) || defined(sgi)
|
||||
# if !defined(MSGPACK_COMP_SGI_DETECTION) && defined(_SGI_COMPILER_VERSION)
|
||||
# define MSGPACK_COMP_SGI_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(_SGI_COMPILER_VERSION)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_SGI_DETECTION) && defined(_COMPILER_VERSION)
|
||||
# define MSGPACK_COMP_SGI_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(_COMPILER_VERSION)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_SGI_DETECTION)
|
||||
# define MSGPACK_COMP_SGI_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_SGI_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_SGI_EMULATED MSGPACK_COMP_SGI_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_SGI
|
||||
# define MSGPACK_COMP_SGI MSGPACK_COMP_SGI_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_SGI_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_SGI_NAME "SGI MIPSpro"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SGI,MSGPACK_COMP_SGI_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_SGI_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SGI_EMULATED,MSGPACK_COMP_SGI_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
67
include/msgpack/predef/compiler/sunpro.h
Normal file
67
include/msgpack/predef/compiler/sunpro.h
Normal file
@ -0,0 +1,67 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_SUNPRO_H
|
||||
#define MSGPACK_PREDEF_COMPILER_SUNPRO_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_SUNPRO`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Sun_Studio_%28software%29 Sun Studio] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__SUNPRO_CC`] [__predef_detection__]]
|
||||
[[`__SUNPRO_C`] [__predef_detection__]]
|
||||
|
||||
[[`__SUNPRO_CC`] [V.R.P]]
|
||||
[[`__SUNPRO_C`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_SUNPRO MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__SUNPRO_CC) || defined(__SUNPRO_C)
|
||||
# if !defined(MSGPACK_COMP_SUNPRO_DETECTION) && defined(__SUNPRO_CC)
|
||||
# define MSGPACK_COMP_SUNPRO_DETECTION MSGPACK_PREDEF_MAKE_0X_VRP(__SUNPRO_CC)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_SUNPRO_DETECTION) && defined(__SUNPRO_C)
|
||||
# define MSGPACK_COMP_SUNPRO_DETECTION MSGPACK_PREDEF_MAKE_0X_VRP(__SUNPRO_C)
|
||||
# endif
|
||||
# if !defined(MSGPACK_COMP_SUNPRO_DETECTION)
|
||||
# define MSGPACK_COMP_SUNPRO_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_SUNPRO_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_SUNPRO_EMULATED MSGPACK_COMP_SUNPRO_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_SUNPRO
|
||||
# define MSGPACK_COMP_SUNPRO MSGPACK_COMP_SUNPRO_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_SUNPRO_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_SUNPRO_NAME "Sun Studio"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SUNPRO,MSGPACK_COMP_SUNPRO_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_SUNPRO_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SUNPRO_EMULATED,MSGPACK_COMP_SUNPRO_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
54
include/msgpack/predef/compiler/tendra.h
Normal file
54
include/msgpack/predef/compiler/tendra.h
Normal file
@ -0,0 +1,54 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_TENDRA_H
|
||||
#define MSGPACK_PREDEF_COMPILER_TENDRA_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_TENDRA`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/TenDRA_Compiler TenDRA C/C++] compiler.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__TenDRA__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_TENDRA MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__TenDRA__)
|
||||
# define MSGPACK_COMP_TENDRA_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_TENDRA_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_TENDRA_EMULATED MSGPACK_COMP_TENDRA_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_TENDRA
|
||||
# define MSGPACK_COMP_TENDRA MSGPACK_COMP_TENDRA_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_TENDRA_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_TENDRA_NAME "TenDRA C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_TENDRA,MSGPACK_COMP_TENDRA_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_TENDRA_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_TENDRA_EMULATED,MSGPACK_COMP_TENDRA_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
92
include/msgpack/predef/compiler/visualc.h
Normal file
92
include/msgpack/predef/compiler/visualc.h
Normal file
@ -0,0 +1,92 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_VISUALC_H
|
||||
#define MSGPACK_PREDEF_COMPILER_VISUALC_H
|
||||
|
||||
/* Other compilers that emulate this one need to be detected first. */
|
||||
|
||||
#include <msgpack/predef/compiler/clang.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_MSVC`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Visual_studio Microsoft Visual C/C++] compiler.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`_MSC_VER`] [__predef_detection__]]
|
||||
|
||||
[[`_MSC_FULL_VER`] [V.R.P]]
|
||||
[[`_MSC_VER`] [V.R.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_MSVC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# if !defined (_MSC_FULL_VER)
|
||||
# define MSGPACK_COMP_MSVC_BUILD 0
|
||||
# else
|
||||
/* how many digits does the build number have? */
|
||||
# if _MSC_FULL_VER / 10000 == _MSC_VER
|
||||
/* four digits */
|
||||
# define MSGPACK_COMP_MSVC_BUILD (_MSC_FULL_VER % 10000)
|
||||
# elif _MSC_FULL_VER / 100000 == _MSC_VER
|
||||
/* five digits */
|
||||
# define MSGPACK_COMP_MSVC_BUILD (_MSC_FULL_VER % 100000)
|
||||
# else
|
||||
# error "Cannot determine build number from _MSC_FULL_VER"
|
||||
# endif
|
||||
# endif
|
||||
/*
|
||||
VS2014 was skipped in the release sequence for MS. Which
|
||||
means that the compiler and VS product versions are no longer
|
||||
in sync. Hence we need to use different formulas for
|
||||
mapping from MSC version to VS product version.
|
||||
*/
|
||||
# if (_MSC_VER >= 1900)
|
||||
# define MSGPACK_COMP_MSVC_DETECTION MSGPACK_VERSION_NUMBER(\
|
||||
_MSC_VER/100-5,\
|
||||
_MSC_VER%100,\
|
||||
MSGPACK_COMP_MSVC_BUILD)
|
||||
# else
|
||||
# define MSGPACK_COMP_MSVC_DETECTION MSGPACK_VERSION_NUMBER(\
|
||||
_MSC_VER/100-6,\
|
||||
_MSC_VER%100,\
|
||||
MSGPACK_COMP_MSVC_BUILD)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_MSVC_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_MSVC_EMULATED MSGPACK_COMP_MSVC_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_MSVC
|
||||
# define MSGPACK_COMP_MSVC MSGPACK_COMP_MSVC_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_MSVC_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_MSVC_NAME "Microsoft Visual C/C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MSVC,MSGPACK_COMP_MSVC_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_MSVC_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MSVC_EMULATED,MSGPACK_COMP_MSVC_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
57
include/msgpack/predef/compiler/watcom.h
Normal file
57
include/msgpack/predef/compiler/watcom.h
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_COMPILER_WATCOM_H
|
||||
#define MSGPACK_PREDEF_COMPILER_WATCOM_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_COMP_WATCOM`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Watcom Watcom C++] compiler.
|
||||
Version number available as major, and minor.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__WATCOMC__`] [__predef_detection__]]
|
||||
|
||||
[[`__WATCOMC__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_COMP_WATCOM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__WATCOMC__)
|
||||
# define MSGPACK_COMP_WATCOM_DETECTION MSGPACK_PREDEF_MAKE_10_VVRR(__WATCOMC__)
|
||||
#endif
|
||||
|
||||
#ifdef MSGPACK_COMP_WATCOM_DETECTION
|
||||
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
|
||||
# define MSGPACK_COMP_WATCOM_EMULATED MSGPACK_COMP_WATCOM_DETECTION
|
||||
# else
|
||||
# undef MSGPACK_COMP_WATCOM
|
||||
# define MSGPACK_COMP_WATCOM MSGPACK_COMP_WATCOM_DETECTION
|
||||
# endif
|
||||
# define MSGPACK_COMP_WATCOM_AVAILABLE
|
||||
# include <msgpack/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_COMP_WATCOM_NAME "Watcom C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_WATCOM,MSGPACK_COMP_WATCOM_NAME)
|
||||
|
||||
#ifdef MSGPACK_COMP_WATCOM_EMULATED
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_WATCOM_EMULATED,MSGPACK_COMP_WATCOM_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
17
include/msgpack/predef/detail/_cassert.h
Normal file
17
include/msgpack/predef/detail/_cassert.h
Normal file
@ -0,0 +1,17 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2011-2012
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_DETAIL__CASSERT_H
|
||||
#define MSGPACK_PREDEF_DETAIL__CASSERT_H
|
||||
|
||||
#if defined(__cpluplus)
|
||||
#include <cassert>
|
||||
#else
|
||||
#include <assert.h>
|
||||
#endif
|
||||
|
||||
#endif
|
15
include/msgpack/predef/detail/_exception.h
Normal file
15
include/msgpack/predef/detail/_exception.h
Normal file
@ -0,0 +1,15 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2011-2012
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_DETAIL__EXCEPTION_H
|
||||
#define MSGPACK_PREDEF_DETAIL__EXCEPTION_H
|
||||
|
||||
#if defined(__cpluplus)
|
||||
#include <exception>
|
||||
#endif
|
||||
|
||||
#endif
|
10
include/msgpack/predef/detail/comp_detected.h
Normal file
10
include/msgpack/predef/detail/comp_detected.h
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_DETAIL_COMP_DETECTED
|
||||
#define MSGPACK_PREDEF_DETAIL_COMP_DETECTED 1
|
||||
#endif
|
26
include/msgpack/predef/detail/endian_compat.h
Normal file
26
include/msgpack/predef/detail/endian_compat.h
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_DETAIL_ENDIAN_COMPAT_H
|
||||
#define MSGPACK_PREDEF_DETAIL_ENDIAN_COMPAT_H
|
||||
|
||||
#include <msgpack/predef/other/endian.h>
|
||||
|
||||
#if MSGPACK_ENDIAN_BIG_BYTE
|
||||
# define MSGPACK_BIG_ENDIAN
|
||||
# define MSGPACK_BYTE_ORDER 4321
|
||||
#endif
|
||||
#if MSGPACK_ENDIAN_LITTLE_BYTE
|
||||
# define MSGPACK_LITTLE_ENDIAN
|
||||
# define MSGPACK_BYTE_ORDER 1234
|
||||
#endif
|
||||
#if MSGPACK_ENDIAN_LITTLE_WORD
|
||||
# define MSGPACK_PDP_ENDIAN
|
||||
# define MSGPACK_BYTE_ORDER 2134
|
||||
#endif
|
||||
|
||||
#endif
|
10
include/msgpack/predef/detail/os_detected.h
Normal file
10
include/msgpack/predef/detail/os_detected.h
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_DETAIL_OS_DETECTED
|
||||
#define MSGPACK_PREDEF_DETAIL_OS_DETECTED 1
|
||||
#endif
|
10
include/msgpack/predef/detail/platform_detected.h
Normal file
10
include/msgpack/predef/detail/platform_detected.h
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_DETAIL_PLAT_DETECTED
|
||||
#define MSGPACK_PREDEF_DETAIL_PLAT_DETECTED 1
|
||||
#endif
|
17
include/msgpack/predef/detail/test.h
Normal file
17
include/msgpack/predef/detail/test.h
Normal file
@ -0,0 +1,17 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2011-2012
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_DETAIL_TEST_H
|
||||
#define MSGPACK_PREDEF_DETAIL_TEST_H
|
||||
|
||||
#if !defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS)
|
||||
|
||||
#define MSGPACK_PREDEF_DECLARE_TEST(x,s)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
15
include/msgpack/predef/language.h
Normal file
15
include/msgpack/predef/language.h
Normal file
@ -0,0 +1,15 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2011-2012
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LANGUAGE_H
|
||||
#define MSGPACK_PREDEF_LANGUAGE_H
|
||||
|
||||
#include <msgpack/predef/language/stdc.h>
|
||||
#include <msgpack/predef/language/stdcpp.h>
|
||||
#include <msgpack/predef/language/objc.h>
|
||||
|
||||
#endif
|
43
include/msgpack/predef/language/objc.h
Normal file
43
include/msgpack/predef/language/objc.h
Normal file
@ -0,0 +1,43 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2011-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LANGUAGE_OBJC_H
|
||||
#define MSGPACK_PREDEF_LANGUAGE_OBJC_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LANG_OBJC`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Objective-C Objective-C] language.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__OBJC__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LANG_OBJC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__OBJC__)
|
||||
# undef MSGPACK_LANG_OBJC
|
||||
# define MSGPACK_LANG_OBJC MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LANG_OBJC
|
||||
# define MSGPACK_LANG_OBJC_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LANG_OBJC_NAME "Objective-C"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LANG_OBJC,MSGPACK_LANG_OBJC_NAME)
|
||||
|
||||
|
||||
#endif
|
54
include/msgpack/predef/language/stdc.h
Normal file
54
include/msgpack/predef/language/stdc.h
Normal file
@ -0,0 +1,54 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2011-2012
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LANGUAGE_STDC_H
|
||||
#define MSGPACK_PREDEF_LANGUAGE_STDC_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LANG_STDC`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/C_(programming_language) Standard C] language.
|
||||
If available, the year of the standard is detected as YYYY.MM.1 from the Epoc date.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__STDC__`] [__predef_detection__]]
|
||||
|
||||
[[`__STDC_VERSION__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LANG_STDC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__STDC__)
|
||||
# undef MSGPACK_LANG_STDC
|
||||
# if defined(__STDC_VERSION__)
|
||||
# if (__STDC_VERSION__ > 100)
|
||||
# define MSGPACK_LANG_STDC MSGPACK_PREDEF_MAKE_YYYYMM(__STDC_VERSION__)
|
||||
# else
|
||||
# define MSGPACK_LANG_STDC MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
# else
|
||||
# define MSGPACK_LANG_STDC MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LANG_STDC
|
||||
# define MSGPACK_LANG_STDC_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LANG_STDC_NAME "Standard C"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LANG_STDC,MSGPACK_LANG_STDC_NAME)
|
||||
|
||||
|
||||
#endif
|
124
include/msgpack/predef/language/stdcpp.h
Normal file
124
include/msgpack/predef/language/stdcpp.h
Normal file
@ -0,0 +1,124 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2011-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LANGUAGE_STDCPP_H
|
||||
#define MSGPACK_PREDEF_LANGUAGE_STDCPP_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LANG_STDCPP`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/C%2B%2B Standard C++] language.
|
||||
If available, the year of the standard is detected as YYYY.MM.1 from the Epoc date.
|
||||
Because of the way the C++ standardization process works the
|
||||
defined version year will not be the commonly known year of the standard.
|
||||
Specifically the defined versions are:
|
||||
|
||||
[table Detected Version Number vs. C++ Standard Year
|
||||
[[Detected Version Number] [Standard Year] [C++ Standard]]
|
||||
[[27.11.1] [1998] [ISO/IEC 14882:1998]]
|
||||
[[41.12.1] [2011] [ISO/IEC 14882:2011]]
|
||||
]
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__cplusplus`] [__predef_detection__]]
|
||||
|
||||
[[`__cplusplus`] [YYYY.MM.1]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LANG_STDCPP MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__cplusplus)
|
||||
# undef MSGPACK_LANG_STDCPP
|
||||
# if (__cplusplus > 100)
|
||||
# define MSGPACK_LANG_STDCPP MSGPACK_PREDEF_MAKE_YYYYMM(__cplusplus)
|
||||
# else
|
||||
# define MSGPACK_LANG_STDCPP MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LANG_STDCPP
|
||||
# define MSGPACK_LANG_STDCPP_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LANG_STDCPP_NAME "Standard C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LANG_STDCPP,MSGPACK_LANG_STDCPP_NAME)
|
||||
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LANG_STDCPPCLI`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/C%2B%2B/CLI Standard C++/CLI] language.
|
||||
If available, the year of the standard is detected as YYYY.MM.1 from the Epoc date.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__cplusplus_cli`] [__predef_detection__]]
|
||||
|
||||
[[`__cplusplus_cli`] [YYYY.MM.1]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LANG_STDCPPCLI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__cplusplus_cli)
|
||||
# undef MSGPACK_LANG_STDCPPCLI
|
||||
# if (__cplusplus_cli > 100)
|
||||
# define MSGPACK_LANG_STDCPPCLI MSGPACK_PREDEF_MAKE_YYYYMM(__cplusplus_cli)
|
||||
# else
|
||||
# define MSGPACK_LANG_STDCPPCLI MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LANG_STDCPPCLI
|
||||
# define MSGPACK_LANG_STDCPPCLI_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LANG_STDCPPCLI_NAME "Standard C++/CLI"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LANG_STDCPPCLI,MSGPACK_LANG_STDCPPCLI_NAME)
|
||||
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LANG_STDECPP`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Embedded_C%2B%2B Standard Embedded C++] language.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__embedded_cplusplus`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LANG_STDECPP MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__embedded_cplusplus)
|
||||
# undef MSGPACK_LANG_STDECPP
|
||||
# define MSGPACK_LANG_STDECPP MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LANG_STDECPP
|
||||
# define MSGPACK_LANG_STDECPP_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LANG_STDECPP_NAME "Standard Embedded C++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LANG_STDECPP,MSGPACK_LANG_STDECPP_NAME)
|
||||
|
||||
|
||||
#endif
|
14
include/msgpack/predef/library.h
Normal file
14
include/msgpack/predef/library.h
Normal file
@ -0,0 +1,14 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2012
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_H
|
||||
|
||||
#include <msgpack/predef/library/c.h>
|
||||
#include <msgpack/predef/library/std.h>
|
||||
|
||||
#endif
|
18
include/msgpack/predef/library/c.h
Normal file
18
include/msgpack/predef/library/c.h
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2012
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_C_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_C_H
|
||||
|
||||
#include <msgpack/predef/library/c/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/library/c/gnu.h>
|
||||
#include <msgpack/predef/library/c/uc.h>
|
||||
#include <msgpack/predef/library/c/vms.h>
|
||||
#include <msgpack/predef/library/c/zos.h>
|
||||
|
||||
#endif
|
13
include/msgpack/predef/library/c/_prefix.h
Normal file
13
include/msgpack/predef/library/c/_prefix.h
Normal file
@ -0,0 +1,13 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_C__PREFIX_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_C__PREFIX_H
|
||||
|
||||
#include <msgpack/predef/detail/_cassert.h>
|
||||
|
||||
#endif
|
62
include/msgpack/predef/library/c/gnu.h
Normal file
62
include/msgpack/predef/library/c/gnu.h
Normal file
@ -0,0 +1,62 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_C_GNU_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_C_GNU_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
#include <msgpack/predef/library/c/_prefix.h>
|
||||
|
||||
#if defined(__STDC__)
|
||||
#include <stddef.h>
|
||||
#elif defined(__cplusplus)
|
||||
#include <cstddef>
|
||||
#endif
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_C_GNU`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Glibc GNU glibc] Standard C library.
|
||||
Version number available as major, and minor.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__GLIBC__`] [__predef_detection__]]
|
||||
[[`__GNU_LIBRARY__`] [__predef_detection__]]
|
||||
|
||||
[[`__GLIBC__`, `__GLIBC_MINOR__`] [V.R.0]]
|
||||
[[`__GNU_LIBRARY__`, `__GNU_LIBRARY_MINOR__`] [V.R.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_C_GNU MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__GLIBC__) || defined(__GNU_LIBRARY__)
|
||||
# undef MSGPACK_LIB_C_GNU
|
||||
# if defined(__GLIBC__)
|
||||
# define MSGPACK_LIB_C_GNU \
|
||||
MSGPACK_VERSION_NUMBER(__GLIBC__,__GLIBC_MINOR__,0)
|
||||
# else
|
||||
# define MSGPACK_LIB_C_GNU \
|
||||
MSGPACK_VERSION_NUMBER(__GNU_LIBRARY__,__GNU_LIBRARY_MINOR__,0)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_C_GNU
|
||||
# define MSGPACK_LIB_C_GNU_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_C_GNU_NAME "GNU"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_C_GNU,MSGPACK_LIB_C_GNU_NAME)
|
||||
|
||||
|
||||
#endif
|
48
include/msgpack/predef/library/c/uc.h
Normal file
48
include/msgpack/predef/library/c/uc.h
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_C_UC_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_C_UC_H
|
||||
|
||||
#include <msgpack/predef/library/c/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_C_UC`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Uclibc uClibc] Standard C library.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__UCLIBC__`] [__predef_detection__]]
|
||||
|
||||
[[`__UCLIBC_MAJOR__`, `__UCLIBC_MINOR__`, `__UCLIBC_SUBLEVEL__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_C_UC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__UCLIBC__)
|
||||
# undef MSGPACK_LIB_C_UC
|
||||
# define MSGPACK_LIB_C_UC MSGPACK_VERSION_NUMBER(\
|
||||
__UCLIBC_MAJOR__,__UCLIBC_MINOR__,__UCLIBC_SUBLEVEL__)
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_C_UC
|
||||
# define MSGPACK_LIB_C_UC_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_C_UC_NAME "uClibc"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_C_UC,MSGPACK_LIB_C_UC_NAME)
|
||||
|
||||
|
||||
#endif
|
48
include/msgpack/predef/library/c/vms.h
Normal file
48
include/msgpack/predef/library/c/vms.h
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_C_VMS_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_C_VMS_H
|
||||
|
||||
#include <msgpack/predef/library/c/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_C_VMS`]
|
||||
|
||||
VMS libc Standard C library.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__CRTL_VER`] [__predef_detection__]]
|
||||
|
||||
[[`__CRTL_VER`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_C_VMS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__CRTL_VER)
|
||||
# undef MSGPACK_LIB_C_VMS
|
||||
# define MSGPACK_LIB_C_VMS MSGPACK_PREDEF_MAKE_10_VVRR0PP00(__CRTL_VER)
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_C_VMS
|
||||
# define MSGPACK_LIB_C_VMS_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_C_VMS_NAME "VMS"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_C_VMS,MSGPACK_LIB_C_VMS_NAME)
|
||||
|
||||
|
||||
#endif
|
57
include/msgpack/predef/library/c/zos.h
Normal file
57
include/msgpack/predef/library/c/zos.h
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_C_ZOS_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_C_ZOS_H
|
||||
|
||||
#include <msgpack/predef/library/c/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_C_ZOS`]
|
||||
|
||||
z/OS libc Standard C library.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__LIBREL__`] [__predef_detection__]]
|
||||
|
||||
[[`__LIBREL__`] [V.R.P]]
|
||||
[[`__TARGET_LIB__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_C_ZOS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__LIBREL__)
|
||||
# undef MSGPACK_LIB_C_ZOS
|
||||
# if !defined(MSGPACK_LIB_C_ZOS) && defined(__LIBREL__)
|
||||
# define MSGPACK_LIB_C_ZOS MSGPACK_PREDEF_MAKE_0X_VRRPPPP(__LIBREL__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_LIB_C_ZOS) && defined(__TARGET_LIB__)
|
||||
# define MSGPACK_LIB_C_ZOS MSGPACK_PREDEF_MAKE_0X_VRRPPPP(__TARGET_LIB__)
|
||||
# endif
|
||||
# if !defined(MSGPACK_LIB_C_ZOS)
|
||||
# define MSGPACK_LIB_C_ZOS MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_C_ZOS
|
||||
# define MSGPACK_LIB_C_ZOS_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_C_ZOS_NAME "z/OS"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_C_ZOS,MSGPACK_LIB_C_ZOS_NAME)
|
||||
|
||||
|
||||
#endif
|
23
include/msgpack/predef/library/std.h
Normal file
23
include/msgpack/predef/library/std.h
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_STD_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_STD_H
|
||||
|
||||
#include <msgpack/predef/library/std/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/library/std/cxx.h>
|
||||
#include <msgpack/predef/library/std/dinkumware.h>
|
||||
#include <msgpack/predef/library/std/libcomo.h>
|
||||
#include <msgpack/predef/library/std/modena.h>
|
||||
#include <msgpack/predef/library/std/msl.h>
|
||||
#include <msgpack/predef/library/std/roguewave.h>
|
||||
#include <msgpack/predef/library/std/sgi.h>
|
||||
#include <msgpack/predef/library/std/stdcpp3.h>
|
||||
#include <msgpack/predef/library/std/stlport.h>
|
||||
#include <msgpack/predef/library/std/vacpp.h>
|
||||
|
||||
#endif
|
23
include/msgpack/predef/library/std/_prefix.h
Normal file
23
include/msgpack/predef/library/std/_prefix.h
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_STD__PREFIX_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_STD__PREFIX_H
|
||||
|
||||
/*
|
||||
We need to include an STD header to gives us the context
|
||||
of which library we are using. The "smallest" code-wise header
|
||||
seems to be <exception>. Boost uses <utility> but as far
|
||||
as I can tell (RR) it's not a stand-alone header in most
|
||||
implementations. Using <exception> also has the benefit of
|
||||
being available in EC++, so we get a chance to make this work
|
||||
for embedded users. And since it's not a header impacted by TR1
|
||||
there's no magic needed for inclusion in the face of the
|
||||
Boost.TR1 library.
|
||||
*/
|
||||
#include <msgpack/predef/detail/_exception.h>
|
||||
|
||||
#endif
|
47
include/msgpack/predef/library/std/cxx.h
Normal file
47
include/msgpack/predef/library/std/cxx.h
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2011-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_STD_CXX_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_STD_CXX_H
|
||||
|
||||
#include <msgpack/predef/library/std/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_STD_CXX`]
|
||||
|
||||
[@http://libcxx.llvm.org/ libc++] C++ Standard Library.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`_LIBCPP_VERSION`] [__predef_detection__]]
|
||||
|
||||
[[`_LIBCPP_VERSION`] [V.0.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_STD_CXX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(_LIBCPP_VERSION)
|
||||
# undef MSGPACK_LIB_STD_CXX
|
||||
# define MSGPACK_LIB_STD_CXX MSGPACK_PREDEF_MAKE_10_VPPP(_LIBCPP_VERSION)
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_STD_CXX
|
||||
# define MSGPACK_LIB_STD_CXX_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_STD_CXX_NAME "libc++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_CXX,MSGPACK_LIB_STD_CXX_NAME)
|
||||
|
||||
|
||||
#endif
|
53
include/msgpack/predef/library/std/dinkumware.h
Normal file
53
include/msgpack/predef/library/std/dinkumware.h
Normal file
@ -0,0 +1,53 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_STD_DINKUMWARE_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_STD_DINKUMWARE_H
|
||||
|
||||
#include <msgpack/predef/library/std/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_STD_DINKUMWARE`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Dinkumware Dinkumware] Standard C++ Library.
|
||||
If available version number as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`_YVALS`, `__IBMCPP__`] [__predef_detection__]]
|
||||
[[`_CPPLIB_VER`] [__predef_detection__]]
|
||||
|
||||
[[`_CPPLIB_VER`] [V.R.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_STD_DINKUMWARE MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
|
||||
# undef MSGPACK_LIB_STD_DINKUMWARE
|
||||
# if defined(_CPPLIB_VER)
|
||||
# define MSGPACK_LIB_STD_DINKUMWARE MSGPACK_PREDEF_MAKE_10_VVRR(_CPPLIB_VER)
|
||||
# else
|
||||
# define MSGPACK_LIB_STD_DINKUMWARE MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_STD_DINKUMWARE
|
||||
# define MSGPACK_LIB_STD_DINKUMWARE_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_STD_DINKUMWARE_NAME "Dinkumware"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_DINKUMWARE,MSGPACK_LIB_STD_DINKUMWARE_NAME)
|
||||
|
||||
|
||||
#endif
|
48
include/msgpack/predef/library/std/libcomo.h
Normal file
48
include/msgpack/predef/library/std/libcomo.h
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_STD_LIBCOMO_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_STD_LIBCOMO_H
|
||||
|
||||
#include <msgpack/predef/library/std/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_STD_COMO`]
|
||||
|
||||
[@http://www.comeaucomputing.com/libcomo/ Comeau Computing] Standard C++ Library.
|
||||
Version number available as major.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__LIBCOMO__`] [__predef_detection__]]
|
||||
|
||||
[[`__LIBCOMO_VERSION__`] [V.0.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_STD_COMO MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__LIBCOMO__)
|
||||
# undef MSGPACK_LIB_STD_COMO
|
||||
# define MSGPACK_LIB_STD_COMO MSGPACK_VERSION_NUMBER(__LIBCOMO_VERSION__,0,0)
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_STD_COMO
|
||||
# define MSGPACK_LIB_STD_COMO_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_STD_COMO_NAME "Comeau Computing"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_COMO,MSGPACK_LIB_STD_COMO_NAME)
|
||||
|
||||
|
||||
#endif
|
46
include/msgpack/predef/library/std/modena.h
Normal file
46
include/msgpack/predef/library/std/modena.h
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_STD_MODENA_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_STD_MODENA_H
|
||||
|
||||
#include <msgpack/predef/library/std/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_STD_MSIPL`]
|
||||
|
||||
[@http://modena.us/ Modena Software Lib++] Standard C++ Library.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`MSIPL_COMPILE_H`] [__predef_detection__]]
|
||||
[[`__MSIPL_COMPILE_H`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_STD_MSIPL MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(MSIPL_COMPILE_H) || defined(__MSIPL_COMPILE_H)
|
||||
# undef MSGPACK_LIB_STD_MSIPL
|
||||
# define MSGPACK_LIB_STD_MSIPL MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_STD_MSIPL
|
||||
# define MSGPACK_LIB_STD_MSIPL_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_STD_MSIPL_NAME "Modena Software Lib++"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_MSIPL,MSGPACK_LIB_STD_MSIPL_NAME)
|
||||
|
||||
|
||||
#endif
|
54
include/msgpack/predef/library/std/msl.h
Normal file
54
include/msgpack/predef/library/std/msl.h
Normal file
@ -0,0 +1,54 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_STD_MSL_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_STD_MSL_H
|
||||
|
||||
#include <msgpack/predef/library/std/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_STD_MSL`]
|
||||
|
||||
[@http://www.freescale.com/ Metrowerks] Standard C++ Library.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__MSL_CPP__`] [__predef_detection__]]
|
||||
[[`__MSL__`] [__predef_detection__]]
|
||||
|
||||
[[`__MSL_CPP__`] [V.R.P]]
|
||||
[[`__MSL__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_STD_MSL MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__MSL_CPP__) || defined(__MSL__)
|
||||
# undef MSGPACK_LIB_STD_MSL
|
||||
# if defined(__MSL_CPP__)
|
||||
# define MSGPACK_LIB_STD_MSL MSGPACK_PREDEF_MAKE_0X_VRPP(__MSL_CPP__)
|
||||
# else
|
||||
# define MSGPACK_LIB_STD_MSL MSGPACK_PREDEF_MAKE_0X_VRPP(__MSL__)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_STD_MSL
|
||||
# define MSGPACK_LIB_STD_MSL_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_STD_MSL_NAME "Metrowerks"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_MSL,MSGPACK_LIB_STD_MSL_NAME)
|
||||
|
||||
|
||||
#endif
|
57
include/msgpack/predef/library/std/roguewave.h
Normal file
57
include/msgpack/predef/library/std/roguewave.h
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_STD_ROGUEWAVE_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_STD_ROGUEWAVE_H
|
||||
|
||||
#include <msgpack/predef/library/std/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_STD_RW`]
|
||||
|
||||
[@http://stdcxx.apache.org/ Roguewave] Standard C++ library.
|
||||
If available version number as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__STD_RWCOMPILER_H__`] [__predef_detection__]]
|
||||
[[`_RWSTD_VER`] [__predef_detection__]]
|
||||
|
||||
[[`_RWSTD_VER`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_STD_RW MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
|
||||
# undef MSGPACK_LIB_STD_RW
|
||||
# if defined(_RWSTD_VER)
|
||||
# if _RWSTD_VER < 0x010000
|
||||
# define MSGPACK_LIB_STD_RW MSGPACK_PREDEF_MAKE_0X_VVRRP(_RWSTD_VER)
|
||||
# else
|
||||
# define MSGPACK_LIB_STD_RW MSGPACK_PREDEF_MAKE_0X_VVRRPP(_RWSTD_VER)
|
||||
# endif
|
||||
# else
|
||||
# define MSGPACK_LIB_STD_RW MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_STD_RW
|
||||
# define MSGPACK_LIB_STD_RW_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_STD_RW_NAME "Roguewave"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_RW,MSGPACK_LIB_STD_RW_NAME)
|
||||
|
||||
|
||||
#endif
|
52
include/msgpack/predef/library/std/sgi.h
Normal file
52
include/msgpack/predef/library/std/sgi.h
Normal file
@ -0,0 +1,52 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_STD_SGI_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_STD_SGI_H
|
||||
|
||||
#include <msgpack/predef/library/std/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_STD_SGI`]
|
||||
|
||||
[@http://www.sgi.com/tech/stl/ SGI] Standard C++ library.
|
||||
If available version number as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__STL_CONFIG_H`] [__predef_detection__]]
|
||||
|
||||
[[`__SGI_STL`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_STD_SGI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__STL_CONFIG_H)
|
||||
# undef MSGPACK_LIB_STD_SGI
|
||||
# if defined(__SGI_STL)
|
||||
# define MSGPACK_LIB_STD_SGI MSGPACK_PREDEF_MAKE_0X_VRP(__SGI_STL)
|
||||
# else
|
||||
# define MSGPACK_LIB_STD_SGI MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_STD_SGI
|
||||
# define MSGPACK_LIB_STD_SGI_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_STD_SGI_NAME "SGI"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_SGI,MSGPACK_LIB_STD_SGI_NAME)
|
||||
|
||||
|
||||
#endif
|
54
include/msgpack/predef/library/std/stdcpp3.h
Normal file
54
include/msgpack/predef/library/std/stdcpp3.h
Normal file
@ -0,0 +1,54 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_STD_STDCPP3_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_STD_STDCPP3_H
|
||||
|
||||
#include <msgpack/predef/library/std/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_STD_GNU`]
|
||||
|
||||
[@http://gcc.gnu.org/libstdc++/ GNU libstdc++] Standard C++ library.
|
||||
Version number available as year (from 1970), month, and day.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__GLIBCXX__`] [__predef_detection__]]
|
||||
[[`__GLIBCPP__`] [__predef_detection__]]
|
||||
|
||||
[[`__GLIBCXX__`] [V.R.P]]
|
||||
[[`__GLIBCPP__`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_STD_GNU MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__GLIBCPP__) || defined(__GLIBCXX__)
|
||||
# undef MSGPACK_LIB_STD_GNU
|
||||
# if defined(__GLIBCXX__)
|
||||
# define MSGPACK_LIB_STD_GNU MSGPACK_PREDEF_MAKE_YYYYMMDD(__GLIBCXX__)
|
||||
# else
|
||||
# define MSGPACK_LIB_STD_GNU MSGPACK_PREDEF_MAKE_YYYYMMDD(__GLIBCPP__)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_STD_GNU
|
||||
# define MSGPACK_LIB_STD_GNU_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_STD_GNU_NAME "GNU"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_GNU,MSGPACK_LIB_STD_GNU_NAME)
|
||||
|
||||
|
||||
#endif
|
60
include/msgpack/predef/library/std/stlport.h
Normal file
60
include/msgpack/predef/library/std/stlport.h
Normal file
@ -0,0 +1,60 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_STD_STLPORT_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_STD_STLPORT_H
|
||||
|
||||
#include <msgpack/predef/library/std/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_STD_STLPORT`]
|
||||
|
||||
[@http://sourceforge.net/projects/stlport/ STLport Standard C++] library.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__SGI_STL_PORT`] [__predef_detection__]]
|
||||
[[`_STLPORT_VERSION`] [__predef_detection__]]
|
||||
|
||||
[[`_STLPORT_MAJOR`, `_STLPORT_MINOR`, `_STLPORT_PATCHLEVEL`] [V.R.P]]
|
||||
[[`_STLPORT_VERSION`] [V.R.P]]
|
||||
[[`__SGI_STL_PORT`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_STD_STLPORT MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
|
||||
# undef MSGPACK_LIB_STD_STLPORT
|
||||
# if !defined(MSGPACK_LIB_STD_STLPORT) && defined(_STLPORT_MAJOR)
|
||||
# define MSGPACK_LIB_STD_STLPORT \
|
||||
MSGPACK_VERSION_NUMBER(_STLPORT_MAJOR,_STLPORT_MINOR,_STLPORT_PATCHLEVEL)
|
||||
# endif
|
||||
# if !defined(MSGPACK_LIB_STD_STLPORT) && defined(_STLPORT_VERSION)
|
||||
# define MSGPACK_LIB_STD_STLPORT MSGPACK_PREDEF_MAKE_0X_VRP(_STLPORT_VERSION)
|
||||
# endif
|
||||
# if !defined(MSGPACK_LIB_STD_STLPORT)
|
||||
# define MSGPACK_LIB_STD_STLPORT MSGPACK_PREDEF_MAKE_0X_VRP(__SGI_STL_PORT)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_STD_STLPORT
|
||||
# define MSGPACK_LIB_STD_STLPORT_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_STD_STLPORT_NAME "STLport"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_STLPORT,MSGPACK_LIB_STD_STLPORT_NAME)
|
||||
|
||||
|
||||
#endif
|
45
include/msgpack/predef/library/std/vacpp.h
Normal file
45
include/msgpack/predef/library/std/vacpp.h
Normal file
@ -0,0 +1,45 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_LIBRARY_STD_VACPP_H
|
||||
#define MSGPACK_PREDEF_LIBRARY_STD_VACPP_H
|
||||
|
||||
#include <msgpack/predef/library/std/_prefix.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_LIB_STD_IBM`]
|
||||
|
||||
[@http://www.ibm.com/software/awdtools/xlcpp/ IBM VACPP Standard C++] library.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__IBMCPP__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_LIB_STD_IBM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__IBMCPP__)
|
||||
# undef MSGPACK_LIB_STD_IBM
|
||||
# define MSGPACK_LIB_STD_IBM MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_LIB_STD_IBM
|
||||
# define MSGPACK_LIB_STD_IBM_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define MSGPACK_LIB_STD_IBM_NAME "IBM VACPP"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_IBM,MSGPACK_LIB_STD_IBM_NAME)
|
||||
|
||||
|
||||
#endif
|
89
include/msgpack/predef/make.h
Normal file
89
include/msgpack/predef/make.h
Normal file
@ -0,0 +1,89 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
|
||||
#ifndef MSGPACK_PREDEF_MAKE_H
|
||||
#define MSGPACK_PREDEF_MAKE_H
|
||||
|
||||
/*
|
||||
Shorthands for the common version number formats used by vendors...
|
||||
*/
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_PREDEF_MAKE_..` macros]
|
||||
|
||||
These set of macros decompose common vendor version number
|
||||
macros which are composed version, revision, and patch digits.
|
||||
The naming convention indicates:
|
||||
|
||||
* The base of the specified version number. "`MSGPACK_PREDEF_MAKE_0X`" for
|
||||
hexadecimal digits, and "`MSGPACK_PREDEF_MAKE_10`" for decimal digits.
|
||||
* The format of the vendor version number. Where "`V`" indicates the version digits,
|
||||
"`R`" indicates the revision digits, "`P`" indicates the patch digits, and "`0`"
|
||||
indicates an ignored digit.
|
||||
|
||||
Macros are:
|
||||
*/
|
||||
/*` `MSGPACK_PREDEF_MAKE_0X_VRP(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_0X_VRP(V) MSGPACK_VERSION_NUMBER((V&0xF00)>>8,(V&0xF0)>>4,(V&0xF))
|
||||
/*` `MSGPACK_PREDEF_MAKE_0X_VVRP(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_0X_VVRP(V) MSGPACK_VERSION_NUMBER((V&0xFF00)>>8,(V&0xF0)>>4,(V&0xF))
|
||||
/*` `MSGPACK_PREDEF_MAKE_0X_VRPP(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_0X_VRPP(V) MSGPACK_VERSION_NUMBER((V&0xF000)>>12,(V&0xF00)>>8,(V&0xFF))
|
||||
/*` `MSGPACK_PREDEF_MAKE_0X_VVRR(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_0X_VVRR(V) MSGPACK_VERSION_NUMBER((V&0xFF00)>>8,(V&0xFF),0)
|
||||
/*` `MSGPACK_PREDEF_MAKE_0X_VRRPPPP(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_0X_VRRPPPP(V) MSGPACK_VERSION_NUMBER((V&0xF000000)>>24,(V&0xFF0000)>>16,(V&0xFFFF))
|
||||
/*` `MSGPACK_PREDEF_MAKE_0X_VVRRP(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_0X_VVRRP(V) MSGPACK_VERSION_NUMBER((V&0xFF000)>>12,(V&0xFF0)>>4,(V&0xF))
|
||||
/*` `MSGPACK_PREDEF_MAKE_0X_VRRPP000(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_0X_VRRPP000(V) MSGPACK_VERSION_NUMBER((V&0xF0000000)>>28,(V&0xFF00000)>>20,(V&0xFF000)>>12)
|
||||
/*` `MSGPACK_PREDEF_MAKE_0X_VVRRPP(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_0X_VVRRPP(V) MSGPACK_VERSION_NUMBER((V&0xFF0000)>>16,(V&0xFF00)>>8,(V&0xFF))
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VPPP(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VPPP(V) MSGPACK_VERSION_NUMBER(((V)/1000)%10,0,(V)%1000)
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VRP(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VRP(V) MSGPACK_VERSION_NUMBER(((V)/100)%10,((V)/10)%10,(V)%10)
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VRP000(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VRP000(V) MSGPACK_VERSION_NUMBER(((V)/100000)%10,((V)/10000)%10,((V)/1000)%10)
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VRPP(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VRPP(V) MSGPACK_VERSION_NUMBER(((V)/1000)%10,((V)/100)%10,(V)%100)
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VRR(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VRR(V) MSGPACK_VERSION_NUMBER(((V)/100)%10,(V)%100,0)
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VRRPP(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VRRPP(V) MSGPACK_VERSION_NUMBER(((V)/10000)%10,((V)/100)%100,(V)%100)
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VRR000(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VRR000(V) MSGPACK_VERSION_NUMBER(((V)/100000)%10,((V)/1000)%100,0)
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VV00(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VV00(V) MSGPACK_VERSION_NUMBER(((V)/100)%100,0,0)
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VVRR(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VVRR(V) MSGPACK_VERSION_NUMBER(((V)/100)%100,(V)%100,0)
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VVRRPP(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VVRRPP(V) MSGPACK_VERSION_NUMBER(((V)/10000)%100,((V)/100)%100,(V)%100)
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VVRR0PP00(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VVRR0PP00(V) MSGPACK_VERSION_NUMBER(((V)/10000000)%100,((V)/100000)%100,((V)/100)%100)
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VVRR0PPPP(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VVRR0PPPP(V) MSGPACK_VERSION_NUMBER(((V)/10000000)%100,((V)/100000)%100,(V)%10000)
|
||||
/*` `MSGPACK_PREDEF_MAKE_10_VVRR00PP00(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_10_VVRR00PP00(V) MSGPACK_VERSION_NUMBER(((V)/100000000)%100,((V)/1000000)%100,((V)/100)%100)
|
||||
/*`
|
||||
[heading `MSGPACK_PREDEF_MAKE_*..` date macros]
|
||||
|
||||
Date decomposition macros return a date in the relative to the 1970
|
||||
Epoch date. If the month is not available, January 1st is used as the month and day.
|
||||
If the day is not available, but the month is, the 1st of the month is used as the day.
|
||||
*/
|
||||
/*` `MSGPACK_PREDEF_MAKE_DATE(Y,M,D)` */
|
||||
#define MSGPACK_PREDEF_MAKE_DATE(Y,M,D) MSGPACK_VERSION_NUMBER((Y)%10000-1970,(M)%100,(D)%100)
|
||||
/*` `MSGPACK_PREDEF_MAKE_YYYYMMDD(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_YYYYMMDD(V) MSGPACK_PREDEF_MAKE_DATE(((V)/10000)%10000,((V)/100)%100,(V)%100)
|
||||
/*` `MSGPACK_PREDEF_MAKE_YYYY(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_YYYY(V) MSGPACK_PREDEF_MAKE_DATE(V,1,1)
|
||||
/*` `MSGPACK_PREDEF_MAKE_YYYYMM(V)` */
|
||||
#define MSGPACK_PREDEF_MAKE_YYYYMM(V) MSGPACK_PREDEF_MAKE_DATE((V)/100,(V),1)
|
||||
|
||||
#endif
|
31
include/msgpack/predef/os.h
Normal file
31
include/msgpack/predef/os.h
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2012
|
||||
Copyright Franz Detro 2014
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_OS_H
|
||||
#define MSGPACK_PREDEF_OS_H
|
||||
|
||||
#include <msgpack/predef/os/aix.h>
|
||||
#include <msgpack/predef/os/amigaos.h>
|
||||
#include <msgpack/predef/os/android.h>
|
||||
#include <msgpack/predef/os/beos.h>
|
||||
#include <msgpack/predef/os/bsd.h>
|
||||
#include <msgpack/predef/os/cygwin.h>
|
||||
#include <msgpack/predef/os/haiku.h>
|
||||
#include <msgpack/predef/os/hpux.h>
|
||||
#include <msgpack/predef/os/irix.h>
|
||||
#include <msgpack/predef/os/ios.h>
|
||||
#include <msgpack/predef/os/linux.h>
|
||||
#include <msgpack/predef/os/macos.h>
|
||||
#include <msgpack/predef/os/os400.h>
|
||||
#include <msgpack/predef/os/qnxnto.h>
|
||||
#include <msgpack/predef/os/solaris.h>
|
||||
#include <msgpack/predef/os/unix.h>
|
||||
#include <msgpack/predef/os/vms.h>
|
||||
#include <msgpack/predef/os/windows.h>
|
||||
|
||||
#endif
|
67
include/msgpack/predef/os/aix.h
Normal file
67
include/msgpack/predef/os/aix.h
Normal file
@ -0,0 +1,67 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_OS_AIX_H
|
||||
#define MSGPACK_PREDEF_OS_AIX_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_OS_AIX`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/AIX_operating_system IBM AIX] operating system.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`_AIX`] [__predef_detection__]]
|
||||
[[`__TOS_AIX__`] [__predef_detection__]]
|
||||
|
||||
[[`_AIX43`] [4.3.0]]
|
||||
[[`_AIX41`] [4.1.0]]
|
||||
[[`_AIX32`] [3.2.0]]
|
||||
[[`_AIX3`] [3.0.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_OS_AIX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
|
||||
defined(_AIX) || defined(__TOS_AIX__) \
|
||||
)
|
||||
# undef MSGPACK_OS_AIX
|
||||
# if !defined(MSGPACK_OS_AIX) && defined(_AIX43)
|
||||
# define MSGPACK_OS_AIX MSGPACK_VERSION_NUMBER(4,3,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_AIX) && defined(_AIX41)
|
||||
# define MSGPACK_OS_AIX MSGPACK_VERSION_NUMBER(4,1,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_AIX) && defined(_AIX32)
|
||||
# define MSGPACK_OS_AIX MSGPACK_VERSION_NUMBER(3,2,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_AIX) && defined(_AIX3)
|
||||
# define MSGPACK_OS_AIX MSGPACK_VERSION_NUMBER(3,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_AIX)
|
||||
# define MSGPACK_OS_AIX MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_OS_AIX
|
||||
# define MSGPACK_OS_AIX_AVAILABLE
|
||||
# include <msgpack/predef/detail/os_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_OS_AIX_NAME "IBM AIX"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_AIX,MSGPACK_OS_AIX_NAME)
|
||||
|
||||
|
||||
#endif
|
47
include/msgpack/predef/os/amigaos.h
Normal file
47
include/msgpack/predef/os/amigaos.h
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_OS_AMIGAOS_H
|
||||
#define MSGPACK_PREDEF_OS_AMIGAOS_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_OS_AMIGAOS`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/AmigaOS AmigaOS] operating system.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`AMIGA`] [__predef_detection__]]
|
||||
[[`__amigaos__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_OS_AMIGAOS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
|
||||
defined(AMIGA) || defined(__amigaos__) \
|
||||
)
|
||||
# undef MSGPACK_OS_AMIGAOS
|
||||
# define MSGPACK_OS_AMIGAOS MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_OS_AMIGAOS
|
||||
# define MSGPACK_OS_AMIGAOS_AVAILABLE
|
||||
# include <msgpack/predef/detail/os_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_OS_AMIGAOS_NAME "AmigaOS"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_AMIGAOS,MSGPACK_OS_AMIGAOS_NAME)
|
||||
|
||||
|
||||
#endif
|
46
include/msgpack/predef/os/android.h
Normal file
46
include/msgpack/predef/os/android.h
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_OS_ADROID_H
|
||||
#define MSGPACK_PREDEF_OS_ADROID_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_OS_ANDROID`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Android_%28operating_system%29 Android] operating system.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__ANDROID__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_OS_ANDROID MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
|
||||
defined(__ANDROID__) \
|
||||
)
|
||||
# undef MSGPACK_OS_ANDROID
|
||||
# define MSGPACK_OS_ANDROID MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_OS_ANDROID
|
||||
# define MSGPACK_OS_ANDROID_AVAILABLE
|
||||
# include <msgpack/predef/detail/os_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_OS_ANDROID_NAME "Android"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_ANDROID,MSGPACK_OS_ANDROID_NAME)
|
||||
|
||||
|
||||
#endif
|
46
include/msgpack/predef/os/beos.h
Normal file
46
include/msgpack/predef/os/beos.h
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_OS_BEOS_H
|
||||
#define MSGPACK_PREDEF_OS_BEOS_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_OS_BEOS`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/BeOS BeOS] operating system.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__BEOS__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_OS_BEOS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
|
||||
defined(__BEOS__) \
|
||||
)
|
||||
# undef MSGPACK_OS_BEOS
|
||||
# define MSGPACK_OS_BEOS MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_OS_BEOS
|
||||
# define MSGPACK_OS_BEOS_AVAILABLE
|
||||
# include <msgpack/predef/detail/os_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_OS_BEOS_NAME "BeOS"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BEOS,MSGPACK_OS_BEOS_NAME)
|
||||
|
||||
|
||||
#endif
|
95
include/msgpack/predef/os/bsd.h
Normal file
95
include/msgpack/predef/os/bsd.h
Normal file
@ -0,0 +1,95 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_OS_BSD_H
|
||||
#define MSGPACK_PREDEF_OS_BSD_H
|
||||
|
||||
/* Special case: OSX will define BSD predefs if the sys/param.h
|
||||
* header is included. We can guard against that, but only if we
|
||||
* detect OSX first. Hence we will force include OSX detection
|
||||
* before doing any BSD detection.
|
||||
*/
|
||||
#include <msgpack/predef/os/macos.h>
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_OS_BSD`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Berkeley_Software_Distribution BSD] operating system.
|
||||
|
||||
BSD has various branch operating systems possible and each detected
|
||||
individually. This detects the following variations and sets a specific
|
||||
version number macro to match:
|
||||
|
||||
* `MSGPACK_OS_BSD_DRAGONFLY` [@http://en.wikipedia.org/wiki/DragonFly_BSD DragonFly BSD]
|
||||
* `MSGPACK_OS_BSD_FREE` [@http://en.wikipedia.org/wiki/Freebsd FreeBSD]
|
||||
* `MSGPACK_OS_BSD_BSDI` [@http://en.wikipedia.org/wiki/BSD/OS BSDi BSD/OS]
|
||||
* `MSGPACK_OS_BSD_NET` [@http://en.wikipedia.org/wiki/Netbsd NetBSD]
|
||||
* `MSGPACK_OS_BSD_OPEN` [@http://en.wikipedia.org/wiki/Openbsd OpenBSD]
|
||||
|
||||
[note The general `MSGPACK_OS_BSD` is set in all cases to indicate some form
|
||||
of BSD. If the above variants is detected the corresponding macro is also set.]
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`BSD`] [__predef_detection__]]
|
||||
[[`_SYSTYPE_BSD`] [__predef_detection__]]
|
||||
|
||||
[[`BSD4_2`] [4.2.0]]
|
||||
[[`BSD4_3`] [4.3.0]]
|
||||
[[`BSD4_4`] [4.4.0]]
|
||||
[[`BSD`] [V.R.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#include <msgpack/predef/os/bsd/bsdi.h>
|
||||
#include <msgpack/predef/os/bsd/dragonfly.h>
|
||||
#include <msgpack/predef/os/bsd/free.h>
|
||||
#include <msgpack/predef/os/bsd/open.h>
|
||||
#include <msgpack/predef/os/bsd/net.h>
|
||||
|
||||
#ifndef MSGPACK_OS_BSD
|
||||
#define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
|
||||
defined(BSD) || \
|
||||
defined(_SYSTYPE_BSD) \
|
||||
)
|
||||
# undef MSGPACK_OS_BSD
|
||||
# include <sys/param.h>
|
||||
# if !defined(MSGPACK_OS_BSD) && defined(BSD4_4)
|
||||
# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER(4,4,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD) && defined(BSD4_3)
|
||||
# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER(4,3,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD) && defined(BSD4_2)
|
||||
# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER(4,2,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD) && defined(BSD)
|
||||
# define MSGPACK_OS_BSD MSGPACK_PREDEF_MAKE_10_VVRR(BSD)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD)
|
||||
# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_OS_BSD
|
||||
# define MSGPACK_OS_BSD_AVAILABLE
|
||||
# include <msgpack/predef/detail/os_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_OS_BSD_NAME "BSD"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD,MSGPACK_OS_BSD_NAME)
|
||||
|
||||
#endif
|
48
include/msgpack/predef/os/bsd/bsdi.h
Normal file
48
include/msgpack/predef/os/bsd/bsdi.h
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2012-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_OS_BSD_BSDI_H
|
||||
#define MSGPACK_PREDEF_OS_BSD_BSDI_H
|
||||
|
||||
#include <msgpack/predef/os/bsd.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_OS_BSD_BSDI`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/BSD/OS BSDi BSD/OS] operating system.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__bsdi__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_OS_BSD_BSDI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
|
||||
defined(__bsdi__) \
|
||||
)
|
||||
# ifndef MSGPACK_OS_BSD_AVAILABLE
|
||||
# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# define MSGPACK_OS_BSD_AVAILABLE
|
||||
# endif
|
||||
# undef MSGPACK_OS_BSD_BSDI
|
||||
# define MSGPACK_OS_BSD_BSDI MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_OS_BSD_BSDI
|
||||
# define MSGPACK_OS_BSD_BSDI_AVAILABLE
|
||||
# include <msgpack/predef/detail/os_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_OS_BSD_BSDI_NAME "BSDi BSD/OS"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD_BSDI,MSGPACK_OS_BSD_BSDI_NAME)
|
||||
|
||||
#endif
|
50
include/msgpack/predef/os/bsd/dragonfly.h
Normal file
50
include/msgpack/predef/os/bsd/dragonfly.h
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2012-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_OS_BSD_DRAGONFLY_H
|
||||
#define MSGPACK_PREDEF_OS_BSD_DRAGONFLY_H
|
||||
|
||||
#include <msgpack/predef/os/bsd.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_OS_BSD_DRAGONFLY`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/DragonFly_BSD DragonFly BSD] operating system.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__DragonFly__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_OS_BSD_DRAGONFLY MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
|
||||
defined(__DragonFly__) \
|
||||
)
|
||||
# ifndef MSGPACK_OS_BSD_AVAILABLE
|
||||
# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# define MSGPACK_OS_BSD_AVAILABLE
|
||||
# endif
|
||||
# undef MSGPACK_OS_BSD_DRAGONFLY
|
||||
# if defined(__DragonFly__)
|
||||
# define MSGPACK_OS_DRAGONFLY_BSD MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_OS_BSD_DRAGONFLY
|
||||
# define MSGPACK_OS_BSD_DRAGONFLY_AVAILABLE
|
||||
# include <msgpack/predef/detail/os_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_OS_BSD_DRAGONFLY_NAME "DragonFly BSD"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD_DRAGONFLY,MSGPACK_OS_BSD_DRAGONFLY_NAME)
|
||||
|
||||
#endif
|
60
include/msgpack/predef/os/bsd/free.h
Normal file
60
include/msgpack/predef/os/bsd/free.h
Normal file
@ -0,0 +1,60 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2012-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_OS_BSD_FREE_H
|
||||
#define MSGPACK_PREDEF_OS_BSD_FREE_H
|
||||
|
||||
#include <msgpack/predef/os/bsd.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_OS_BSD_FREE`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Freebsd FreeBSD] operating system.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__FreeBSD__`] [__predef_detection__]]
|
||||
|
||||
[[`__FreeBSD_version`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_OS_BSD_FREE MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
|
||||
defined(__FreeBSD__) \
|
||||
)
|
||||
# ifndef MSGPACK_OS_BSD_AVAILABLE
|
||||
# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# define MSGPACK_OS_BSD_AVAILABLE
|
||||
# endif
|
||||
# undef MSGPACK_OS_BSD_FREE
|
||||
# if defined(__FreeBSD_version)
|
||||
# if __FreeBSD_version < 500000
|
||||
# define MSGPACK_OS_BSD_FREE \
|
||||
MSGPACK_PREDEF_MAKE_10_VRP000(__FreeBSD_version)
|
||||
# else
|
||||
# define MSGPACK_OS_BSD_FREE \
|
||||
MSGPACK_PREDEF_MAKE_10_VRR000(__FreeBSD_version)
|
||||
# endif
|
||||
# else
|
||||
# define MSGPACK_OS_BSD_FREE MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_OS_BSD_FREE
|
||||
# define MSGPACK_OS_BSD_FREE_AVAILABLE
|
||||
# include <msgpack/predef/detail/os_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_OS_BSD_FREE_NAME "Free BSD"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD_FREE,MSGPACK_OS_BSD_FREE_NAME)
|
||||
|
||||
#endif
|
84
include/msgpack/predef/os/bsd/net.h
Normal file
84
include/msgpack/predef/os/bsd/net.h
Normal file
@ -0,0 +1,84 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2012-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_OS_BSD_NET_H
|
||||
#define MSGPACK_PREDEF_OS_BSD_NET_H
|
||||
|
||||
#include <msgpack/predef/os/bsd.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_OS_BSD_NET`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Netbsd NetBSD] operating system.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__NETBSD__`] [__predef_detection__]]
|
||||
[[`__NetBSD__`] [__predef_detection__]]
|
||||
|
||||
[[`__NETBSD_version`] [V.R.P]]
|
||||
[[`NetBSD0_8`] [0.8.0]]
|
||||
[[`NetBSD0_9`] [0.9.0]]
|
||||
[[`NetBSD1_0`] [1.0.0]]
|
||||
[[`__NetBSD_Version`] [V.R.P]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
|
||||
defined(__NETBSD__) || defined(__NetBSD__) \
|
||||
)
|
||||
# ifndef MSGPACK_OS_BSD_AVAILABLE
|
||||
# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# define MSGPACK_OS_BSD_AVAILABLE
|
||||
# endif
|
||||
# undef MSGPACK_OS_BSD_NET
|
||||
# if defined(__NETBSD__)
|
||||
# if defined(__NETBSD_version)
|
||||
# if __NETBSD_version < 500000
|
||||
# define MSGPACK_OS_BSD_NET \
|
||||
MSGPACK_PREDEF_MAKE_10_VRP000(__NETBSD_version)
|
||||
# else
|
||||
# define MSGPACK_OS_BSD_NET \
|
||||
MSGPACK_PREDEF_MAKE_10_VRR000(__NETBSD_version)
|
||||
# endif
|
||||
# else
|
||||
# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
# elif defined(__NetBSD__)
|
||||
# if !defined(MSGPACK_OS_BSD_NET) && defined(NetBSD0_8)
|
||||
# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER(0,8,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_NET) && defined(NetBSD0_9)
|
||||
# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER(0,9,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_NET) && defined(NetBSD1_0)
|
||||
# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER(1,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_NET) && defined(__NetBSD_Version)
|
||||
# define MSGPACK_OS_BSD_NET \
|
||||
MSGPACK_PREDEF_MAKE_10_VVRR00PP00(__NetBSD_Version)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_NET)
|
||||
# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_OS_BSD_NET
|
||||
# define MSGPACK_OS_BSD_NET_AVAILABLE
|
||||
# include <msgpack/predef/detail/os_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_OS_BSD_NET_NAME "DragonFly BSD"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD_NET,MSGPACK_OS_BSD_NET_NAME)
|
||||
|
||||
#endif
|
171
include/msgpack/predef/os/bsd/open.h
Normal file
171
include/msgpack/predef/os/bsd/open.h
Normal file
@ -0,0 +1,171 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2012-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_OS_BSD_OPEN_H
|
||||
#define MSGPACK_PREDEF_OS_BSD_OPEN_H
|
||||
|
||||
#include <msgpack/predef/os/bsd.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_OS_BSD_OPEN`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Openbsd OpenBSD] operating system.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__OpenBSD__`] [__predef_detection__]]
|
||||
|
||||
[[`OpenBSD2_0`] [2.0.0]]
|
||||
[[`OpenBSD2_1`] [2.1.0]]
|
||||
[[`OpenBSD2_2`] [2.2.0]]
|
||||
[[`OpenBSD2_3`] [2.3.0]]
|
||||
[[`OpenBSD2_4`] [2.4.0]]
|
||||
[[`OpenBSD2_5`] [2.5.0]]
|
||||
[[`OpenBSD2_6`] [2.6.0]]
|
||||
[[`OpenBSD2_7`] [2.7.0]]
|
||||
[[`OpenBSD2_8`] [2.8.0]]
|
||||
[[`OpenBSD2_9`] [2.9.0]]
|
||||
[[`OpenBSD3_0`] [3.0.0]]
|
||||
[[`OpenBSD3_1`] [3.1.0]]
|
||||
[[`OpenBSD3_2`] [3.2.0]]
|
||||
[[`OpenBSD3_3`] [3.3.0]]
|
||||
[[`OpenBSD3_4`] [3.4.0]]
|
||||
[[`OpenBSD3_5`] [3.5.0]]
|
||||
[[`OpenBSD3_6`] [3.6.0]]
|
||||
[[`OpenBSD3_7`] [3.7.0]]
|
||||
[[`OpenBSD3_8`] [3.8.0]]
|
||||
[[`OpenBSD3_9`] [3.9.0]]
|
||||
[[`OpenBSD4_0`] [4.0.0]]
|
||||
[[`OpenBSD4_1`] [4.1.0]]
|
||||
[[`OpenBSD4_2`] [4.2.0]]
|
||||
[[`OpenBSD4_3`] [4.3.0]]
|
||||
[[`OpenBSD4_4`] [4.4.0]]
|
||||
[[`OpenBSD4_5`] [4.5.0]]
|
||||
[[`OpenBSD4_6`] [4.6.0]]
|
||||
[[`OpenBSD4_7`] [4.7.0]]
|
||||
[[`OpenBSD4_8`] [4.8.0]]
|
||||
[[`OpenBSD4_9`] [4.9.0]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
|
||||
defined(__OpenBSD__) \
|
||||
)
|
||||
# ifndef MSGPACK_OS_BSD_AVAILABLE
|
||||
# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# define MSGPACK_OS_BSD_AVAILABLE
|
||||
# endif
|
||||
# undef MSGPACK_OS_BSD_OPEN
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_0)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_1)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,1,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_2)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,2,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_3)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,3,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_4)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,4,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_5)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,5,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_6)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,6,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_7)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,7,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_8)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,8,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_9)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,9,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_0)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_1)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,1,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_2)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,2,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_3)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,3,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_4)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,4,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_5)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,5,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_6)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,6,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_7)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,7,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_8)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,8,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_9)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,9,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_0)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,0,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_1)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,1,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_2)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,2,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_3)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,3,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_4)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,4,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_5)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,5,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_6)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,6,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_7)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,7,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_8)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,8,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_9)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,9,0)
|
||||
# endif
|
||||
# if !defined(MSGPACK_OS_BSD_OPEN)
|
||||
# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if MSGPACK_OS_BSD_OPEN
|
||||
# define MSGPACK_OS_BSD_OPEN_AVAILABLE
|
||||
# include <msgpack/predef/detail/os_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_OS_BSD_OPEN_NAME "OpenBSD"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD_OPEN,MSGPACK_OS_BSD_OPEN_NAME)
|
||||
|
||||
#endif
|
46
include/msgpack/predef/os/cygwin.h
Normal file
46
include/msgpack/predef/os/cygwin.h
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#ifndef MSGPACK_PREDEF_OS_CYGWIN_H
|
||||
#define MSGPACK_PREDEF_OS_CYGWIN_H
|
||||
|
||||
#include <msgpack/predef/version_number.h>
|
||||
#include <msgpack/predef/make.h>
|
||||
|
||||
/*`
|
||||
[heading `MSGPACK_OS_CYGWIN`]
|
||||
|
||||
[@http://en.wikipedia.org/wiki/Cygwin Cygwin] evironment.
|
||||
|
||||
[table
|
||||
[[__predef_symbol__] [__predef_version__]]
|
||||
|
||||
[[`__CYGWIN__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define MSGPACK_OS_CYGWIN MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
|
||||
defined(__CYGWIN__) \
|
||||
)
|
||||
# undef MSGPACK_OS_CYGWIN
|
||||
# define MSGPACK_OS_CGYWIN MSGPACK_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if MSGPACK_OS_CYGWIN
|
||||
# define MSGPACK_OS_CYGWIN_AVAILABLE
|
||||
# include <msgpack/predef/detail/os_detected.h>
|
||||
#endif
|
||||
|
||||
#define MSGPACK_OS_CYGWIN_NAME "Cygwin"
|
||||
|
||||
#include <msgpack/predef/detail/test.h>
|
||||
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_CYGWIN,MSGPACK_OS_CYGWIN_NAME)
|
||||
|
||||
|
||||
#endif
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user