OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 /* Specific compiler features */ | 46 /* Specific compiler features */ |
47 #define WTF_COMPILER_SUPPORTS_CXX_VARIADIC_TEMPLATES __has_extension(cxx_variadi
c_templates) | 47 #define WTF_COMPILER_SUPPORTS_CXX_VARIADIC_TEMPLATES __has_extension(cxx_variadi
c_templates) |
48 | 48 |
49 /* There is a bug in clang that comes with Xcode 4.2 where AtomicStrings can't b
e implicitly converted to Strings | 49 /* There is a bug in clang that comes with Xcode 4.2 where AtomicStrings can't b
e implicitly converted to Strings |
50 in the presence of move constructors and/or move assignment operators. This b
ug has been fixed in Xcode 4.3 clang, so we | 50 in the presence of move constructors and/or move assignment operators. This b
ug has been fixed in Xcode 4.3 clang, so we |
51 check for both cxx_rvalue_references as well as the unrelated cxx_nonstatic_m
ember_init feature which we know was added in 4.3 */ | 51 check for both cxx_rvalue_references as well as the unrelated cxx_nonstatic_m
ember_init feature which we know was added in 4.3 */ |
52 #define WTF_COMPILER_SUPPORTS_CXX_RVALUE_REFERENCES __has_extension(cxx_rvalue_r
eferences) && __has_extension(cxx_nonstatic_member_init) | 52 #define WTF_COMPILER_SUPPORTS_CXX_RVALUE_REFERENCES __has_extension(cxx_rvalue_r
eferences) && __has_extension(cxx_nonstatic_member_init) |
53 | 53 |
54 #define WTF_COMPILER_SUPPORTS_CXX_DELETED_FUNCTIONS __has_extension(cxx_deleted_
functions) | 54 #define WTF_COMPILER_SUPPORTS_CXX_DELETED_FUNCTIONS __has_extension(cxx_deleted_
functions) |
| 55 #define WTF_COMPILER_SUPPORTS_CXX_DEFAULTED_FUNCTIONS __has_extension(cxx_defaul
ted_functions) |
55 #define WTF_COMPILER_SUPPORTS_CXX_NULLPTR __has_feature(cxx_nullptr) | 56 #define WTF_COMPILER_SUPPORTS_CXX_NULLPTR __has_feature(cxx_nullptr) |
56 #define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS __has_feature(cxx_explici
t_conversions) | 57 #define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS __has_feature(cxx_explici
t_conversions) |
57 #define WTF_COMPILER_SUPPORTS_BLOCKS __has_feature(blocks) | 58 #define WTF_COMPILER_SUPPORTS_BLOCKS __has_feature(blocks) |
58 #define WTF_COMPILER_SUPPORTS_C_STATIC_ASSERT __has_extension(c_static_assert) | 59 #define WTF_COMPILER_SUPPORTS_C_STATIC_ASSERT __has_extension(c_static_assert) |
59 #define WTF_COMPILER_SUPPORTS_CXX_STATIC_ASSERT __has_extension(cxx_static_asser
t) | 60 #define WTF_COMPILER_SUPPORTS_CXX_STATIC_ASSERT __has_extension(cxx_static_asser
t) |
60 #define WTF_COMPILER_SUPPORTS_CXX_OVERRIDE_CONTROL __has_extension(cxx_override_
control) | 61 #define WTF_COMPILER_SUPPORTS_CXX_OVERRIDE_CONTROL __has_extension(cxx_override_
control) |
61 #define WTF_COMPILER_SUPPORTS_HAS_TRIVIAL_DESTRUCTOR __has_extension(has_trivial
_destructor) | 62 #define WTF_COMPILER_SUPPORTS_HAS_TRIVIAL_DESTRUCTOR __has_extension(has_trivial
_destructor) |
62 #define WTF_COMPILER_SUPPORTS_CXX_STRONG_ENUMS __has_extension(cxx_strong_enums) | 63 #define WTF_COMPILER_SUPPORTS_CXX_STRONG_ENUMS __has_extension(cxx_strong_enums) |
63 | 64 |
64 #endif | 65 #endif |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 #endif | 104 #endif |
104 #if defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(__cplusplus) && __cplusplus
>= 201103L) | 105 #if defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(__cplusplus) && __cplusplus
>= 201103L) |
105 /* C++11 support */ | 106 /* C++11 support */ |
106 #if GCC_VERSION_AT_LEAST(4, 3, 0) | 107 #if GCC_VERSION_AT_LEAST(4, 3, 0) |
107 #define WTF_COMPILER_SUPPORTS_CXX_RVALUE_REFERENCES 1 | 108 #define WTF_COMPILER_SUPPORTS_CXX_RVALUE_REFERENCES 1 |
108 #define WTF_COMPILER_SUPPORTS_CXX_STATIC_ASSERT 1 | 109 #define WTF_COMPILER_SUPPORTS_CXX_STATIC_ASSERT 1 |
109 #define WTF_COMPILER_SUPPORTS_CXX_VARIADIC_TEMPLATES 1 | 110 #define WTF_COMPILER_SUPPORTS_CXX_VARIADIC_TEMPLATES 1 |
110 #endif | 111 #endif |
111 #if GCC_VERSION_AT_LEAST(4, 4, 0) | 112 #if GCC_VERSION_AT_LEAST(4, 4, 0) |
112 #define WTF_COMPILER_SUPPORTS_CXX_DELETED_FUNCTIONS 1 | 113 #define WTF_COMPILER_SUPPORTS_CXX_DELETED_FUNCTIONS 1 |
| 114 #define WTF_COMPILER_SUPPORTS_CXX_DEFAULTED_FUNCTIONS 1 |
113 #endif | 115 #endif |
114 #if GCC_VERSION_AT_LEAST(4, 5, 0) | 116 #if GCC_VERSION_AT_LEAST(4, 5, 0) |
115 #define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS 1 | 117 #define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS 1 |
116 #endif | 118 #endif |
117 #if GCC_VERSION_AT_LEAST(4, 6, 0) | 119 #if GCC_VERSION_AT_LEAST(4, 6, 0) |
118 #define WTF_COMPILER_SUPPORTS_CXX_NULLPTR 1 | 120 #define WTF_COMPILER_SUPPORTS_CXX_NULLPTR 1 |
119 /* Strong enums should work from gcc 4.4, but doesn't seem to support some opera
tors */ | 121 /* Strong enums should work from gcc 4.4, but doesn't seem to support some opera
tors */ |
120 #define WTF_COMPILER_SUPPORTS_CXX_STRONG_ENUMS 1 | 122 #define WTF_COMPILER_SUPPORTS_CXX_STRONG_ENUMS 1 |
121 #endif | 123 #endif |
122 #if GCC_VERSION_AT_LEAST(4, 7, 0) | 124 #if GCC_VERSION_AT_LEAST(4, 7, 0) |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 #define WTF_COMPILER_SUPPORTS_PRETTY_FUNCTION 1 | 252 #define WTF_COMPILER_SUPPORTS_PRETTY_FUNCTION 1 |
251 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__ | 253 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__ |
252 #elif COMPILER(MSVC) | 254 #elif COMPILER(MSVC) |
253 #define WTF_COMPILER_SUPPORTS_PRETTY_FUNCTION 1 | 255 #define WTF_COMPILER_SUPPORTS_PRETTY_FUNCTION 1 |
254 #define WTF_PRETTY_FUNCTION __FUNCDNAME__ | 256 #define WTF_PRETTY_FUNCTION __FUNCDNAME__ |
255 #else | 257 #else |
256 #define WTF_PRETTY_FUNCTION __FUNCTION__ | 258 #define WTF_PRETTY_FUNCTION __FUNCTION__ |
257 #endif | 259 #endif |
258 | 260 |
259 #endif /* WTF_Compiler_h */ | 261 #endif /* WTF_Compiler_h */ |
OLD | NEW |