MessagePack for C
Loading...
Searching...
No Matches
intel.h
Go to the documentation of this file.
1/*
2Copyright Rene Rivera 2008-2017
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6*/
7
8#ifndef MSGPACK_PREDEF_COMPILER_INTEL_H
9#define MSGPACK_PREDEF_COMPILER_INTEL_H
10
12#include <msgpack/predef/make.h>
13
14/*`
15[heading `MSGPACK_COMP_INTEL`]
16
17[@http://en.wikipedia.org/wiki/Intel_C%2B%2B Intel C/C++] compiler.
18Version number available as major, minor, and patch.
19
20[table
21 [[__predef_symbol__] [__predef_version__]]
22
23 [[`__INTEL_COMPILER`] [__predef_detection__]]
24 [[`__ICL`] [__predef_detection__]]
25 [[`__ICC`] [__predef_detection__]]
26 [[`__ECC`] [__predef_detection__]]
27
28 [[`__INTEL_COMPILER`] [V.R]]
29 [[`__INTEL_COMPILER` and `__INTEL_COMPILER_UPDATE`] [V.R.P]]
30 ]
31 */
32
33#define MSGPACK_COMP_INTEL MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
34
35#if defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || \
36 defined(__ECC)
37/*`
38[note Because of an Intel mistake in the release version numbering when
39`__INTEL_COMPILER` is `9999` it is detected as version 12.1.0.]
40 */
41# if !defined(MSGPACK_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER) && (__INTEL_COMPILER == 9999)
42# define MSGPACK_COMP_INTEL_DETECTION MSGPACK_VERSION_NUMBER(12,1,0)
43# endif
44# if !defined(MSGPACK_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE)
45# define MSGPACK_COMP_INTEL_DETECTION MSGPACK_VERSION_NUMBER( \
46 MSGPACK_VERSION_NUMBER_MAJOR(MSGPACK_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)), \
47 MSGPACK_VERSION_NUMBER_MINOR(MSGPACK_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)), \
48 __INTEL_COMPILER_UPDATE)
49# endif
50# if !defined(MSGPACK_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER)
51# define MSGPACK_COMP_INTEL_DETECTION MSGPACK_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)
52# endif
53# if !defined(MSGPACK_COMP_INTEL_DETECTION)
54# define MSGPACK_COMP_INTEL_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
55# endif
56#endif
57
58#ifdef MSGPACK_COMP_INTEL_DETECTION
59# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
60# define MSGPACK_COMP_INTEL_EMULATED MSGPACK_COMP_INTEL_DETECTION
61# else
62# undef MSGPACK_COMP_INTEL
63# define MSGPACK_COMP_INTEL MSGPACK_COMP_INTEL_DETECTION
64# endif
65# define MSGPACK_COMP_INTEL_AVAILABLE
67#endif
68
69#define MSGPACK_COMP_INTEL_NAME "Intel C/C++"
70
71#endif
72
75
76#ifdef MSGPACK_COMP_INTEL_EMULATED
79#endif
#define MSGPACK_COMP_INTEL
Definition intel.h:33
#define MSGPACK_COMP_INTEL_NAME
Definition intel.h:69
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition test.h:13