|
Lines 32-37
a/Source/WTF/wtf/Compiler.h_sec1
|
| 32 |
/* COMPILER_SUPPORTS() - whether the compiler being used to build the project supports the given feature. */ |
32 |
/* COMPILER_SUPPORTS() - whether the compiler being used to build the project supports the given feature. */ |
| 33 |
#define COMPILER_SUPPORTS(WTF_COMPILER_FEATURE) (defined WTF_COMPILER_SUPPORTS_##WTF_COMPILER_FEATURE && WTF_COMPILER_SUPPORTS_##WTF_COMPILER_FEATURE) |
33 |
#define COMPILER_SUPPORTS(WTF_COMPILER_FEATURE) (defined WTF_COMPILER_SUPPORTS_##WTF_COMPILER_FEATURE && WTF_COMPILER_SUPPORTS_##WTF_COMPILER_FEATURE) |
| 34 |
|
34 |
|
|
|
35 |
/* COMPILER_QUIRK() - whether the compiler being used to build the project requires a given quirks. */ |
| 36 |
#define COMPILER_QUIRK(WTF_COMPILER_QUIRK) (defined WTF_COMPILER_QUIRK##WTF_COMPILER_QUIRK && WTF_COMPILER_QUIRK_##WTF_COMPILER_QUIRK) |
| 37 |
|
| 35 |
/* ==== COMPILER() - the compiler being used to build the project ==== */ |
38 |
/* ==== COMPILER() - the compiler being used to build the project ==== */ |
| 36 |
|
39 |
|
| 37 |
/* COMPILER(CLANG) - Clang */ |
40 |
/* COMPILER(CLANG) - Clang */ |
|
Lines 95-109
a/Source/WTF/wtf/Compiler.h_sec2
|
| 95 |
#define WTF_COMPILER_GCC 1 |
98 |
#define WTF_COMPILER_GCC 1 |
| 96 |
#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) |
99 |
#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) |
| 97 |
#define GCC_VERSION_AT_LEAST(major, minor, patch) (GCC_VERSION >= (major * 10000 + minor * 100 + patch)) |
100 |
#define GCC_VERSION_AT_LEAST(major, minor, patch) (GCC_VERSION >= (major * 10000 + minor * 100 + patch)) |
|
|
101 |
#else |
| 102 |
/* Define this for !GCC compilers, just so we can write things like GCC_VERSION_AT_LEAST(4, 1, 0). */ |
| 103 |
#define GCC_VERSION_AT_LEAST(major, minor, patch) 0 |
| 104 |
#endif |
| 98 |
|
105 |
|
| 99 |
/* Specific compiler features */ |
106 |
/* Specific compiler features */ |
| 100 |
#if !COMPILER(CLANG) && GCC_VERSION_AT_LEAST(4, 6, 0) && defined(__GXX_EXPERIMENTAL_CXX0X__) |
107 |
#if COMPILER(GCC) && !COMPILER(CLANG) |
|
|
108 |
#if GCC_VERSION_AT_LEAST(4, 7, 0) && __cplusplus >= 201103L |
| 109 |
#define WTF_COMPILER_SUPPORTS_CXX_NULLPTR 1 |
| 110 |
#define WTF_COMPILER_QUIRK_GCC11_GLOBAL_ISINF_ISNAN 1 |
| 111 |
#elif GCC_VERSION_AT_LEAST(4, 6, 0) && defined(__GXX_EXPERIMENTAL_CXX0X__) |
| 101 |
#define WTF_COMPILER_SUPPORTS_CXX_NULLPTR 1 |
112 |
#define WTF_COMPILER_SUPPORTS_CXX_NULLPTR 1 |
|
|
113 |
#define WTF_COMPILER_QUIRK_GCC11_GLOBAL_ISINF_ISNAN 1 |
| 102 |
#endif |
114 |
#endif |
| 103 |
|
|
|
| 104 |
#else |
| 105 |
/* Define this for !GCC compilers, just so we can write things like GCC_VERSION_AT_LEAST(4, 1, 0). */ |
| 106 |
#define GCC_VERSION_AT_LEAST(major, minor, patch) 0 |
| 107 |
#endif |
115 |
#endif |
| 108 |
|
116 |
|
| 109 |
/* COMPILER(MINGW) - MinGW GCC */ |
117 |
/* COMPILER(MINGW) - MinGW GCC */ |