DxLibEx
intel.hpp
Go to the documentation of this file.
1 /*=============================================================================
2  Copyright (C) 2015-2017 DxLibEx project
3  https://github.com/Nagarei/DxLibEx/
4 
5  Distributed under the Boost Software License, Version 1.0.
6  (See http://www.boost.org/LICENSE_1_0.txt)
7 =============================================================================*/
8 #ifndef DXLE_CONFIG_COMPILER_INTEL_HPP_
9 #define DXLE_CONFIG_COMPILER_INTEL_HPP_
10 
11 #include "common_edg.hpp"
12 
13 #if defined(__INTEL_COMPILER)
14 # define DXLE_INTEL_CXX_VERSION __INTEL_COMPILER
15 #elif defined(__ICL)
16 # define DXLE_INTEL_CXX_VERSION __ICL
17 #elif defined(__ICC)
18 # define DXLE_INTEL_CXX_VERSION __ICC
19 #elif defined(__ECC)
20 # define DXLE_INTEL_CXX_VERSION __ECC
21 #endif
22 
23 #if (!(defined(_WIN32) || defined(_WIN64)) && defined(__STDC_HOSTED__) && (__STDC_HOSTED__ && (DXLE_INTEL_CXX_VERSION <= 1200))) || defined(__GXX_EXPERIMENTAL_CPP0X__) || defined(__GXX_EXPERIMENTAL_CXX0X__)
24 # define DXLE_INTEL_STDCXX11
25 #endif
26 #if defined(_MSC_VER) && (_MSC_VER >= 1600)
27 # define DXLE_INTEL_STDCXX11
28 #endif
29 
30 #if defined(SPROUT_INTEL_STDCXX11) && (SPROUT_INTEL_CXX_VERSION >= 1200)
31 # undef DXLE_NO_CXX11_DELETED_FUNCTIONS
32 # undef DXLE_NO_CXX11_DEFAULTED_FUNCTIONS
33 #endif
34 
35 #if defined(SPROUT_INTEL_STDCXX11) && (SPROUT_INTEL_CXX_VERSION > 1200)
36 # undef DXLE_NO_CXX11_TEMPLATE_ALIASES
37 #endif
38 
39 #if defined(SPROUT_INTEL_STDCXX11) && (SPROUT_INTEL_CXX_VERSION >= 1400) && !defined(_MSC_VER)
40 # undef DXLE_NO_CXX11_UNICODE_LITERALS
41 # undef DXLE_NO_CXX11_CONSTEXPR
42 #endif
43 
44 #if defined(_MSC_VER) && (_MSC_VER <= 1700)
45 # define DXLE_NO_CXX11_DELETED_FUNCTIONS
46 # define DXLE_NO_CXX11_DEFAULTED_FUNCTIONS
47 # define DXLE_NO_CXX11_TEMPLATE_ALIASES
48 #endif
49 
50 #define DXLE_NO_CXX17_UNUSED
51 
52 #endif // #ifndef DXLE_CONFIG_COMPILER_INTEL_HPP_