MessagePack for C
include
msgpack
predef
compiler
gcc.h
Go to the documentation of this file.
1
/*
2
Copyright Rene Rivera 2008-2015
3
Distributed under the Boost Software License, Version 1.0.
4
(See accompanying file LICENSE_1_0.txt or copy at
5
http://www.boost.org/LICENSE_1_0.txt)
6
*/
7
8
#ifndef MSGPACK_PREDEF_COMPILER_GCC_H
9
#define MSGPACK_PREDEF_COMPILER_GCC_H
10
11
/* Other compilers that emulate this one need to be detected first. */
12
13
#include <
msgpack/predef/compiler/clang.h
>
14
15
#include <
msgpack/predef/version_number.h
>
16
#include <
msgpack/predef/make.h
>
17
18
/*`
19
[heading `MSGPACK_COMP_GNUC`]
20
21
[@http://en.wikipedia.org/wiki/GNU_Compiler_Collection Gnu GCC C/C++] compiler.
22
Version number available as major, minor, and patch (if available).
23
24
[table
25
[[__predef_symbol__] [__predef_version__]]
26
27
[[`__GNUC__`] [__predef_detection__]]
28
29
[[`__GNUC__`, `__GNUC_MINOR__`, `__GNUC_PATCHLEVEL__`] [V.R.P]]
30
[[`__GNUC__`, `__GNUC_MINOR__`] [V.R.0]]
31
]
32
*/
33
34
#define MSGPACK_COMP_GNUC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
35
36
#if defined(__GNUC__)
37
# if !defined(MSGPACK_COMP_GNUC_DETECTION) && defined(__GNUC_PATCHLEVEL__)
38
# define MSGPACK_COMP_GNUC_DETECTION \
39
MSGPACK_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__)
40
# endif
41
# if !defined(MSGPACK_COMP_GNUC_DETECTION)
42
# define MSGPACK_COMP_GNUC_DETECTION \
43
MSGPACK_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,0)
44
# endif
45
#endif
46
47
#ifdef MSGPACK_COMP_GNUC_DETECTION
48
# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
49
# define MSGPACK_COMP_GNUC_EMULATED MSGPACK_COMP_GNUC_DETECTION
50
# else
51
# undef MSGPACK_COMP_GNUC
52
# define MSGPACK_COMP_GNUC MSGPACK_COMP_GNUC_DETECTION
53
# endif
54
# define MSGPACK_COMP_GNUC_AVAILABLE
55
# include <
msgpack/predef/detail/comp_detected.h
>
56
#endif
57
58
#define MSGPACK_COMP_GNUC_NAME "Gnu GCC C/C++"
59
60
#endif
61
62
#include <
msgpack/predef/detail/test.h
>
63
MSGPACK_PREDEF_DECLARE_TEST
(
MSGPACK_COMP_GNUC
,
MSGPACK_COMP_GNUC_NAME
)
64
65
#ifdef MSGPACK_COMP_GNUC_EMULATED
66
#include <
msgpack/predef/detail/test.h
>
67
MSGPACK_PREDEF_DECLARE_TEST
(MSGPACK_COMP_GNUC_EMULATED,
MSGPACK_COMP_GNUC_NAME
)
68
#endif
MSGPACK_COMP_GNUC
#define MSGPACK_COMP_GNUC
Definition:
gcc.h:34
MSGPACK_COMP_GNUC_NAME
#define MSGPACK_COMP_GNUC_NAME
Definition:
gcc.h:58
clang.h
version_number.h
test.h
comp_detected.h
MSGPACK_PREDEF_DECLARE_TEST
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition:
test.h:13
make.h
Generated by
1.8.17