Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===--------------------------- __config ---------------------------------===// |
| 3 | // |
Howard Hinnant | c566dc3 | 2010-05-11 21:36:01 +0000 | [diff] [blame] | 4 | // The LLVM Compiler Infrastructure |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 5 | // |
Howard Hinnant | ee11c31 | 2010-11-16 22:09:02 +0000 | [diff] [blame] | 6 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | // Source Licenses. See LICENSE.TXT for details. |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | #ifndef _LIBCPP_CONFIG |
| 12 | #define _LIBCPP_CONFIG |
| 13 | |
Howard Hinnant | 13d8bc1 | 2013-08-01 18:17:34 +0000 | [diff] [blame] | 14 | #if !defined(_MSC_VER) || defined(__clang__) |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 15 | #pragma GCC system_header |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 16 | #endif |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 17 | |
Howard Hinnant | cafe717 | 2012-10-03 20:48:05 +0000 | [diff] [blame] | 18 | #ifdef __GNUC__ |
| 19 | #define _GNUC_VER (__GNUC__ * 100 + __GNUC_MINOR__) |
Eric Fiselier | 7d22317 | 2015-06-13 02:18:44 +0000 | [diff] [blame] | 20 | #else |
| 21 | #define _GNUC_VER 0 |
Howard Hinnant | cafe717 | 2012-10-03 20:48:05 +0000 | [diff] [blame] | 22 | #endif |
| 23 | |
Jonathan Roelofs | 7b97713 | 2014-09-03 00:29:02 +0000 | [diff] [blame] | 24 | #if !_WIN32 |
| 25 | #include <unistd.h> |
| 26 | #endif |
| 27 | |
Howard Hinnant | 24192cd | 2012-09-28 17:42:25 +0000 | [diff] [blame] | 28 | #define _LIBCPP_VERSION 1101 |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 29 | |
| 30 | #define _LIBCPP_ABI_VERSION 1 |
| 31 | |
| 32 | #define _LIBCPP_CONCAT1(_LIBCPP_X,_LIBCPP_Y) _LIBCPP_X##_LIBCPP_Y |
| 33 | #define _LIBCPP_CONCAT(_LIBCPP_X,_LIBCPP_Y) _LIBCPP_CONCAT1(_LIBCPP_X,_LIBCPP_Y) |
| 34 | |
| 35 | #define _LIBCPP_NAMESPACE _LIBCPP_CONCAT(__,_LIBCPP_ABI_VERSION) |
| 36 | |
| 37 | #ifdef __LITTLE_ENDIAN__ |
| 38 | #if __LITTLE_ENDIAN__ |
| 39 | #define _LIBCPP_LITTLE_ENDIAN 1 |
| 40 | #define _LIBCPP_BIG_ENDIAN 0 |
Howard Hinnant | 3b6579a | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 41 | #endif // __LITTLE_ENDIAN__ |
| 42 | #endif // __LITTLE_ENDIAN__ |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 43 | |
| 44 | #ifdef __BIG_ENDIAN__ |
| 45 | #if __BIG_ENDIAN__ |
| 46 | #define _LIBCPP_LITTLE_ENDIAN 0 |
| 47 | #define _LIBCPP_BIG_ENDIAN 1 |
Howard Hinnant | 3b6579a | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 48 | #endif // __BIG_ENDIAN__ |
| 49 | #endif // __BIG_ENDIAN__ |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 50 | |
David Chisnall | 93008f0 | 2010-08-11 16:27:20 +0000 | [diff] [blame] | 51 | #ifdef __FreeBSD__ |
| 52 | # include <sys/endian.h> |
| 53 | # if _BYTE_ORDER == _LITTLE_ENDIAN |
| 54 | # define _LIBCPP_LITTLE_ENDIAN 1 |
| 55 | # define _LIBCPP_BIG_ENDIAN 0 |
Howard Hinnant | 3b6579a | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 56 | # else // _BYTE_ORDER == _LITTLE_ENDIAN |
David Chisnall | 93008f0 | 2010-08-11 16:27:20 +0000 | [diff] [blame] | 57 | # define _LIBCPP_LITTLE_ENDIAN 0 |
| 58 | # define _LIBCPP_BIG_ENDIAN 1 |
Howard Hinnant | 3b6579a | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 59 | # endif // _BYTE_ORDER == _LITTLE_ENDIAN |
Howard Hinnant | 1383035 | 2012-11-26 21:18:17 +0000 | [diff] [blame] | 60 | # ifndef __LONG_LONG_SUPPORTED |
| 61 | # define _LIBCPP_HAS_NO_LONG_LONG |
| 62 | # endif // __LONG_LONG_SUPPORTED |
Howard Hinnant | 3b6579a | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 63 | #endif // __FreeBSD__ |
David Chisnall | 93008f0 | 2010-08-11 16:27:20 +0000 | [diff] [blame] | 64 | |
Joerg Sonnenberger | 153e416 | 2013-05-17 21:17:34 +0000 | [diff] [blame] | 65 | #ifdef __NetBSD__ |
| 66 | # include <sys/endian.h> |
| 67 | # if _BYTE_ORDER == _LITTLE_ENDIAN |
| 68 | # define _LIBCPP_LITTLE_ENDIAN 1 |
| 69 | # define _LIBCPP_BIG_ENDIAN 0 |
| 70 | # else // _BYTE_ORDER == _LITTLE_ENDIAN |
| 71 | # define _LIBCPP_LITTLE_ENDIAN 0 |
| 72 | # define _LIBCPP_BIG_ENDIAN 1 |
| 73 | # endif // _BYTE_ORDER == _LITTLE_ENDIAN |
| 74 | # define _LIBCPP_HAS_QUICK_EXIT |
| 75 | #endif // __NetBSD__ |
| 76 | |
Howard Hinnant | 34bad2a | 2011-05-13 17:16:06 +0000 | [diff] [blame] | 77 | #ifdef _WIN32 |
| 78 | # define _LIBCPP_LITTLE_ENDIAN 1 |
| 79 | # define _LIBCPP_BIG_ENDIAN 0 |
Eric Fiselier | f739430 | 2015-06-13 07:08:02 +0000 | [diff] [blame^] | 80 | // Compiler intrinsics (MSVC) |
| 81 | #if defined(_MSC_VER) && _MSC_VER >= 1400 |
Howard Hinnant | 13d8bc1 | 2013-08-01 18:17:34 +0000 | [diff] [blame] | 82 | # define _LIBCPP_HAS_IS_BASE_OF |
Howard Hinnant | dd0d702 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 83 | # endif |
Howard Hinnant | 13d8bc1 | 2013-08-01 18:17:34 +0000 | [diff] [blame] | 84 | # if defined(_MSC_VER) && !defined(__clang__) |
| 85 | # define _LIBCPP_MSVC // Using Microsoft Visual C++ compiler |
Howard Hinnant | 408927e | 2013-10-04 21:14:44 +0000 | [diff] [blame] | 86 | # define _LIBCPP_TOSTRING2(x) #x |
| 87 | # define _LIBCPP_TOSTRING(x) _LIBCPP_TOSTRING2(x) |
| 88 | # define _LIBCPP_WARNING(x) __pragma(message(__FILE__ "(" _LIBCPP_TOSTRING(__LINE__) ") : warning note: " x)) |
Howard Hinnant | 13d8bc1 | 2013-08-01 18:17:34 +0000 | [diff] [blame] | 89 | # endif |
Howard Hinnant | 8ad7091 | 2013-09-17 01:34:47 +0000 | [diff] [blame] | 90 | # // If mingw not explicitly detected, assume using MS C runtime only. |
| 91 | # ifndef __MINGW32__ |
| 92 | # define _LIBCPP_MSVCRT // Using Microsoft's C Runtime library |
| 93 | # endif |
Howard Hinnant | 34bad2a | 2011-05-13 17:16:06 +0000 | [diff] [blame] | 94 | #endif // _WIN32 |
| 95 | |
David Chisnall | 8074c34 | 2012-02-29 13:05:08 +0000 | [diff] [blame] | 96 | #ifdef __sun__ |
| 97 | # include <sys/isa_defs.h> |
| 98 | # ifdef _LITTLE_ENDIAN |
| 99 | # define _LIBCPP_LITTLE_ENDIAN 1 |
| 100 | # define _LIBCPP_BIG_ENDIAN 0 |
| 101 | # else |
| 102 | # define _LIBCPP_LITTLE_ENDIAN 0 |
| 103 | # define _LIBCPP_BIG_ENDIAN 1 |
| 104 | # endif |
| 105 | #endif // __sun__ |
| 106 | |
Ed Schouten | dcf3740 | 2015-03-10 07:46:06 +0000 | [diff] [blame] | 107 | #if defined(__CloudABI__) |
| 108 | // Certain architectures provide arc4random(). Prefer using |
| 109 | // arc4random() over /dev/{u,}random to make it possible to obtain |
| 110 | // random data even when using sandboxing mechanisms such as chroots, |
| 111 | // Capsicum, etc. |
| 112 | # define _LIBCPP_USING_ARC4_RANDOM |
| 113 | #elif defined(__native_client__) |
JF Bastien | d483203 | 2014-12-01 19:19:55 +0000 | [diff] [blame] | 114 | // NaCl's sandbox (which PNaCl also runs in) doesn't allow filesystem access, |
| 115 | // including accesses to the special files under /dev. C++11's |
| 116 | // std::random_device is instead exposed through a NaCl syscall. |
| 117 | # define _LIBCPP_USING_NACL_RANDOM |
Ed Schouten | dcf3740 | 2015-03-10 07:46:06 +0000 | [diff] [blame] | 118 | #elif defined(_WIN32) |
| 119 | # define _LIBCPP_USING_WIN32_RANDOM |
| 120 | #else |
| 121 | # define _LIBCPP_USING_DEV_RANDOM |
| 122 | #endif |
JF Bastien | d483203 | 2014-12-01 19:19:55 +0000 | [diff] [blame] | 123 | |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 124 | #if !defined(_LIBCPP_LITTLE_ENDIAN) || !defined(_LIBCPP_BIG_ENDIAN) |
Howard Hinnant | 155c2af | 2010-05-24 17:49:41 +0000 | [diff] [blame] | 125 | # include <endian.h> |
| 126 | # if __BYTE_ORDER == __LITTLE_ENDIAN |
| 127 | # define _LIBCPP_LITTLE_ENDIAN 1 |
| 128 | # define _LIBCPP_BIG_ENDIAN 0 |
| 129 | # elif __BYTE_ORDER == __BIG_ENDIAN |
| 130 | # define _LIBCPP_LITTLE_ENDIAN 0 |
| 131 | # define _LIBCPP_BIG_ENDIAN 1 |
Howard Hinnant | 3b6579a | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 132 | # else // __BYTE_ORDER == __BIG_ENDIAN |
Howard Hinnant | 155c2af | 2010-05-24 17:49:41 +0000 | [diff] [blame] | 133 | # error unable to determine endian |
| 134 | # endif |
Howard Hinnant | 3b6579a | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 135 | #endif // !defined(_LIBCPP_LITTLE_ENDIAN) || !defined(_LIBCPP_BIG_ENDIAN) |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 136 | |
Marshall Clow | 1f25732 | 2013-03-18 17:04:29 +0000 | [diff] [blame] | 137 | #ifdef _WIN32 |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 138 | |
| 139 | // only really useful for a DLL |
| 140 | #ifdef _LIBCPP_DLL // this should be a compiler builtin define ideally... |
| 141 | # ifdef cxx_EXPORTS |
| 142 | # define _LIBCPP_HIDDEN |
Howard Hinnant | 8331b76 | 2013-03-06 23:30:19 +0000 | [diff] [blame] | 143 | # define _LIBCPP_FUNC_VIS __declspec(dllexport) |
| 144 | # define _LIBCPP_TYPE_VIS __declspec(dllexport) |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 145 | # else |
| 146 | # define _LIBCPP_HIDDEN |
Howard Hinnant | 8331b76 | 2013-03-06 23:30:19 +0000 | [diff] [blame] | 147 | # define _LIBCPP_FUNC_VIS __declspec(dllimport) |
| 148 | # define _LIBCPP_TYPE_VIS __declspec(dllimport) |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 149 | # endif |
| 150 | #else |
| 151 | # define _LIBCPP_HIDDEN |
Howard Hinnant | 8331b76 | 2013-03-06 23:30:19 +0000 | [diff] [blame] | 152 | # define _LIBCPP_FUNC_VIS |
| 153 | # define _LIBCPP_TYPE_VIS |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 154 | #endif |
| 155 | |
Howard Hinnant | a37d3cf | 2013-08-12 18:38:34 +0000 | [diff] [blame] | 156 | #define _LIBCPP_TYPE_VIS_ONLY |
| 157 | #define _LIBCPP_FUNC_VIS_ONLY |
| 158 | |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 159 | #ifndef _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | 13d8bc1 | 2013-08-01 18:17:34 +0000 | [diff] [blame] | 160 | # ifdef _LIBCPP_MSVC |
Howard Hinnant | 2aa7ad4 | 2011-10-20 12:49:21 +0000 | [diff] [blame] | 161 | # define _LIBCPP_INLINE_VISIBILITY __forceinline |
| 162 | # else // MinGW GCC and Clang |
| 163 | # define _LIBCPP_INLINE_VISIBILITY __attribute__ ((__always_inline__)) |
| 164 | # endif |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 165 | #endif |
| 166 | |
| 167 | #ifndef _LIBCPP_EXCEPTION_ABI |
Howard Hinnant | 8331b76 | 2013-03-06 23:30:19 +0000 | [diff] [blame] | 168 | #define _LIBCPP_EXCEPTION_ABI _LIBCPP_TYPE_VIS |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 169 | #endif |
| 170 | |
| 171 | #ifndef _LIBCPP_ALWAYS_INLINE |
Howard Hinnant | 13d8bc1 | 2013-08-01 18:17:34 +0000 | [diff] [blame] | 172 | # ifdef _LIBCPP_MSVC |
Howard Hinnant | 2aa7ad4 | 2011-10-20 12:49:21 +0000 | [diff] [blame] | 173 | # define _LIBCPP_ALWAYS_INLINE __forceinline |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 174 | # endif |
| 175 | #endif |
| 176 | |
| 177 | #endif // _WIN32 |
| 178 | |
Joerg Sonnenberger | 08e0698 | 2013-04-27 20:51:42 +0000 | [diff] [blame] | 179 | #ifndef __has_attribute |
| 180 | #define __has_attribute(__x) 0 |
| 181 | #endif |
| 182 | |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 183 | #ifndef _LIBCPP_HIDDEN |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 184 | #define _LIBCPP_HIDDEN __attribute__ ((__visibility__("hidden"))) |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 185 | #endif |
| 186 | |
Howard Hinnant | 8331b76 | 2013-03-06 23:30:19 +0000 | [diff] [blame] | 187 | #ifndef _LIBCPP_FUNC_VIS |
| 188 | #define _LIBCPP_FUNC_VIS __attribute__ ((__visibility__("default"))) |
| 189 | #endif |
| 190 | |
| 191 | #ifndef _LIBCPP_TYPE_VIS |
Howard Hinnant | 59f7301 | 2013-11-13 00:39:22 +0000 | [diff] [blame] | 192 | # if __has_attribute(__type_visibility__) |
Howard Hinnant | 411d2c5 | 2013-03-07 19:25:03 +0000 | [diff] [blame] | 193 | # define _LIBCPP_TYPE_VIS __attribute__ ((__type_visibility__("default"))) |
| 194 | # else |
| 195 | # define _LIBCPP_TYPE_VIS __attribute__ ((__visibility__("default"))) |
| 196 | # endif |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 197 | #endif |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 198 | |
Howard Hinnant | a37d3cf | 2013-08-12 18:38:34 +0000 | [diff] [blame] | 199 | #ifndef _LIBCPP_TYPE_VIS_ONLY |
| 200 | # define _LIBCPP_TYPE_VIS_ONLY _LIBCPP_TYPE_VIS |
| 201 | #endif |
| 202 | |
| 203 | #ifndef _LIBCPP_FUNC_VIS_ONLY |
| 204 | # define _LIBCPP_FUNC_VIS_ONLY _LIBCPP_FUNC_VIS |
| 205 | #endif |
| 206 | |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 207 | #ifndef _LIBCPP_INLINE_VISIBILITY |
| 208 | #define _LIBCPP_INLINE_VISIBILITY __attribute__ ((__visibility__("hidden"), __always_inline__)) |
| 209 | #endif |
| 210 | |
| 211 | #ifndef _LIBCPP_EXCEPTION_ABI |
Howard Hinnant | d889383 | 2013-12-04 21:03:23 +0000 | [diff] [blame] | 212 | #define _LIBCPP_EXCEPTION_ABI __attribute__ ((__visibility__("default"))) |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 213 | #endif |
| 214 | |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 215 | #ifndef _LIBCPP_ALWAYS_INLINE |
Howard Hinnant | cf82332 | 2010-12-17 14:46:43 +0000 | [diff] [blame] | 216 | #define _LIBCPP_ALWAYS_INLINE __attribute__ ((__visibility__("hidden"), __always_inline__)) |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 217 | #endif |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 218 | |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 219 | #if defined(__clang__) |
| 220 | |
Tim Northover | 0528f50 | 2014-03-30 14:59:12 +0000 | [diff] [blame] | 221 | #if defined(__APPLE__) && !defined(__i386__) && !defined(__x86_64__) && \ |
| 222 | !defined(__arm__) |
Tim Northover | ffc9593 | 2014-03-30 11:34:22 +0000 | [diff] [blame] | 223 | #define _LIBCPP_ALTERNATE_STRING_LAYOUT |
| 224 | #endif |
| 225 | |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 226 | #if __has_feature(cxx_alignas) |
Howard Hinnant | 62cad69 | 2012-05-31 19:31:14 +0000 | [diff] [blame] | 227 | # define _ALIGNAS_TYPE(x) alignas(x) |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 228 | # define _ALIGNAS(x) alignas(x) |
| 229 | #else |
Howard Hinnant | 076b28c | 2012-05-31 20:14:00 +0000 | [diff] [blame] | 230 | # define _ALIGNAS_TYPE(x) __attribute__((__aligned__(__alignof(x)))) |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 231 | # define _ALIGNAS(x) __attribute__((__aligned__(x))) |
| 232 | #endif |
| 233 | |
Howard Hinnant | e13b584 | 2011-05-26 19:07:54 +0000 | [diff] [blame] | 234 | #if !__has_feature(cxx_alias_templates) |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 235 | #define _LIBCPP_HAS_NO_TEMPLATE_ALIASES |
Howard Hinnant | e13b584 | 2011-05-26 19:07:54 +0000 | [diff] [blame] | 236 | #endif |
Howard Hinnant | 8e6a398 | 2010-09-07 20:31:18 +0000 | [diff] [blame] | 237 | |
Marshall Clow | 2b12c31 | 2014-02-22 15:13:48 +0000 | [diff] [blame] | 238 | #if __cplusplus < 201103L |
Howard Hinnant | 31cd14f | 2010-09-16 23:27:26 +0000 | [diff] [blame] | 239 | typedef __char16_t char16_t; |
| 240 | typedef __char32_t char32_t; |
Howard Hinnant | 8e6a398 | 2010-09-07 20:31:18 +0000 | [diff] [blame] | 241 | #endif |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 242 | |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 243 | #if !(__has_feature(cxx_exceptions)) |
| 244 | #define _LIBCPP_NO_EXCEPTIONS |
| 245 | #endif |
| 246 | |
Howard Hinnant | 72f7358 | 2010-08-11 17:04:31 +0000 | [diff] [blame] | 247 | #if !(__has_feature(cxx_rtti)) |
| 248 | #define _LIBCPP_NO_RTTI |
| 249 | #endif |
| 250 | |
Howard Hinnant | 09bc0c9 | 2011-12-02 19:36:40 +0000 | [diff] [blame] | 251 | #if !(__has_feature(cxx_strong_enums)) |
| 252 | #define _LIBCPP_HAS_NO_STRONG_ENUMS |
| 253 | #endif |
| 254 | |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 255 | #if !(__has_feature(cxx_decltype)) |
| 256 | #define _LIBCPP_HAS_NO_DECLTYPE |
| 257 | #endif |
| 258 | |
Howard Hinnant | 8df9629 | 2011-05-26 17:07:32 +0000 | [diff] [blame] | 259 | #if __has_feature(cxx_attributes) |
Richard Smith | cabd392 | 2012-07-26 02:04:22 +0000 | [diff] [blame] | 260 | # define _LIBCPP_NORETURN [[noreturn]] |
Howard Hinnant | 8df9629 | 2011-05-26 17:07:32 +0000 | [diff] [blame] | 261 | #else |
Richard Smith | cabd392 | 2012-07-26 02:04:22 +0000 | [diff] [blame] | 262 | # define _LIBCPP_NORETURN __attribute__ ((noreturn)) |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 263 | #endif |
| 264 | |
Dimitry Andric | 5785d60 | 2015-02-05 07:40:48 +0000 | [diff] [blame] | 265 | #define _LIBCPP_UNUSED __attribute__((__unused__)) |
| 266 | |
Howard Hinnant | 3d28422 | 2013-05-02 20:18:43 +0000 | [diff] [blame] | 267 | #if !(__has_feature(cxx_defaulted_functions)) |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 268 | #define _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS |
Howard Hinnant | 3d28422 | 2013-05-02 20:18:43 +0000 | [diff] [blame] | 269 | #endif // !(__has_feature(cxx_defaulted_functions)) |
Howard Hinnant | 642b34a | 2010-09-29 18:13:54 +0000 | [diff] [blame] | 270 | |
| 271 | #if !(__has_feature(cxx_deleted_functions)) |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 272 | #define _LIBCPP_HAS_NO_DELETED_FUNCTIONS |
| 273 | #endif // !(__has_feature(cxx_deleted_functions)) |
| 274 | |
| 275 | #if !(__has_feature(cxx_lambdas)) |
| 276 | #define _LIBCPP_HAS_NO_LAMBDAS |
| 277 | #endif |
| 278 | |
| 279 | #if !(__has_feature(cxx_nullptr)) |
| 280 | #define _LIBCPP_HAS_NO_NULLPTR |
| 281 | #endif |
| 282 | |
| 283 | #if !(__has_feature(cxx_rvalue_references)) |
| 284 | #define _LIBCPP_HAS_NO_RVALUE_REFERENCES |
| 285 | #endif |
| 286 | |
| 287 | #if !(__has_feature(cxx_static_assert)) |
| 288 | #define _LIBCPP_HAS_NO_STATIC_ASSERT |
| 289 | #endif |
| 290 | |
| 291 | #if !(__has_feature(cxx_auto_type)) |
| 292 | #define _LIBCPP_HAS_NO_AUTO_TYPE |
Howard Hinnant | 986832c | 2011-07-29 21:35:53 +0000 | [diff] [blame] | 293 | #endif |
| 294 | |
Howard Hinnant | df937d0 | 2011-07-31 17:10:44 +0000 | [diff] [blame] | 295 | #if !(__has_feature(cxx_access_control_sfinae)) || !__has_feature(cxx_trailing_return) |
Howard Hinnant | 68d1339 | 2011-05-11 20:19:40 +0000 | [diff] [blame] | 296 | #define _LIBCPP_HAS_NO_ADVANCED_SFINAE |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 297 | #endif |
| 298 | |
| 299 | #if !(__has_feature(cxx_variadic_templates)) |
| 300 | #define _LIBCPP_HAS_NO_VARIADICS |
| 301 | #endif |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 302 | |
Howard Hinnant | 9e9eb95 | 2010-11-16 21:10:23 +0000 | [diff] [blame] | 303 | #if !(__has_feature(cxx_trailing_return)) |
| 304 | #define _LIBCPP_HAS_NO_TRAILING_RETURN |
| 305 | #endif |
| 306 | |
Howard Hinnant | 3371179 | 2011-08-12 21:56:02 +0000 | [diff] [blame] | 307 | #if !(__has_feature(cxx_generalized_initializers)) |
| 308 | #define _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS |
| 309 | #endif |
| 310 | |
Howard Hinnant | dd0d702 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 311 | #if __has_feature(is_base_of) |
Howard Hinnant | 13d8bc1 | 2013-08-01 18:17:34 +0000 | [diff] [blame] | 312 | # define _LIBCPP_HAS_IS_BASE_OF |
Howard Hinnant | dd0d702 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 313 | #endif |
| 314 | |
Eric Fiselier | f739430 | 2015-06-13 07:08:02 +0000 | [diff] [blame^] | 315 | #if __has_feature(is_final) |
| 316 | # define _LIBCPP_HAS_IS_FINAL |
| 317 | #endif |
| 318 | |
Douglas Gregor | 1303444 | 2011-06-22 22:17:44 +0000 | [diff] [blame] | 319 | // Objective-C++ features (opt-in) |
| 320 | #if __has_feature(objc_arc) |
| 321 | #define _LIBCPP_HAS_OBJC_ARC |
| 322 | #endif |
| 323 | |
| 324 | #if __has_feature(objc_arc_weak) |
| 325 | #define _LIBCPP_HAS_OBJC_ARC_WEAK |
Howard Hinnant | 09bc0c9 | 2011-12-02 19:36:40 +0000 | [diff] [blame] | 326 | #define _LIBCPP_HAS_NO_STRONG_ENUMS |
Douglas Gregor | 1303444 | 2011-06-22 22:17:44 +0000 | [diff] [blame] | 327 | #endif |
| 328 | |
Howard Hinnant | 62c8c0b | 2010-09-06 19:10:31 +0000 | [diff] [blame] | 329 | #if !(__has_feature(cxx_constexpr)) |
| 330 | #define _LIBCPP_HAS_NO_CONSTEXPR |
| 331 | #endif |
| 332 | |
Eric Fiselier | b4c0c66 | 2014-07-17 05:16:18 +0000 | [diff] [blame] | 333 | #if !(__has_feature(cxx_relaxed_constexpr)) |
| 334 | #define _LIBCPP_HAS_NO_CXX14_CONSTEXPR |
| 335 | #endif |
| 336 | |
Marshall Clow | faae698 | 2015-03-17 15:30:22 +0000 | [diff] [blame] | 337 | #if !(__has_feature(cxx_variable_templates)) |
| 338 | #define _LIBCPP_HAS_NO_VARIABLE_TEMPLATES |
| 339 | #endif |
| 340 | |
David Blaikie | 97ab002 | 2013-05-13 21:53:44 +0000 | [diff] [blame] | 341 | #if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L |
| 342 | #if defined(__FreeBSD__) |
David Chisnall | 277ad05 | 2012-03-14 14:10:37 +0000 | [diff] [blame] | 343 | #define _LIBCPP_HAS_QUICK_EXIT |
Howard Hinnant | cabc5a2 | 2012-10-13 18:03:53 +0000 | [diff] [blame] | 344 | #define _LIBCPP_HAS_C11_FEATURES |
Marshall Clow | 3477ec9 | 2014-07-10 15:20:28 +0000 | [diff] [blame] | 345 | #elif defined(__ANDROID__) |
| 346 | #define _LIBCPP_HAS_QUICK_EXIT |
David Blaikie | 97ab002 | 2013-05-13 21:53:44 +0000 | [diff] [blame] | 347 | #elif defined(__linux__) |
| 348 | #include <features.h> |
| 349 | #if __GLIBC_PREREQ(2, 15) |
| 350 | #define _LIBCPP_HAS_QUICK_EXIT |
| 351 | #endif |
| 352 | #if __GLIBC_PREREQ(2, 17) |
| 353 | #define _LIBCPP_HAS_C11_FEATURES |
| 354 | #endif |
| 355 | #endif |
David Chisnall | 277ad05 | 2012-03-14 14:10:37 +0000 | [diff] [blame] | 356 | #endif |
| 357 | |
Howard Hinnant | 68d1339 | 2011-05-11 20:19:40 +0000 | [diff] [blame] | 358 | #if (__has_feature(cxx_noexcept)) |
| 359 | # define _NOEXCEPT noexcept |
| 360 | # define _NOEXCEPT_(x) noexcept(x) |
Marshall Clow | 0869d9f | 2014-01-03 18:21:14 +0000 | [diff] [blame] | 361 | # define _NOEXCEPT_OR_FALSE(x) noexcept(x) |
Howard Hinnant | 68d1339 | 2011-05-11 20:19:40 +0000 | [diff] [blame] | 362 | #else |
| 363 | # define _NOEXCEPT throw() |
| 364 | # define _NOEXCEPT_(x) |
Marshall Clow | 0869d9f | 2014-01-03 18:21:14 +0000 | [diff] [blame] | 365 | # define _NOEXCEPT_OR_FALSE(x) false |
Howard Hinnant | 68d1339 | 2011-05-11 20:19:40 +0000 | [diff] [blame] | 366 | #endif |
| 367 | |
Alexis Hunt | 43b6e8e | 2011-07-18 18:37:21 +0000 | [diff] [blame] | 368 | #if __has_feature(underlying_type) |
Marshall Clow | 2072352 | 2014-06-26 01:07:56 +0000 | [diff] [blame] | 369 | # define _LIBCPP_UNDERLYING_TYPE(T) __underlying_type(T) |
| 370 | #endif |
| 371 | |
| 372 | #if __has_feature(is_literal) |
| 373 | # define _LIBCPP_IS_LITERAL(T) __is_literal(T) |
Alexis Hunt | 43b6e8e | 2011-07-18 18:37:21 +0000 | [diff] [blame] | 374 | #endif |
| 375 | |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 376 | // Inline namespaces are available in Clang regardless of C++ dialect. |
| 377 | #define _LIBCPP_BEGIN_NAMESPACE_STD namespace std {inline namespace _LIBCPP_NAMESPACE { |
| 378 | #define _LIBCPP_END_NAMESPACE_STD } } |
| 379 | #define _VSTD std::_LIBCPP_NAMESPACE |
| 380 | |
| 381 | namespace std { |
| 382 | inline namespace _LIBCPP_NAMESPACE { |
| 383 | } |
| 384 | } |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 385 | |
Marshall Clow | 90fc047 | 2014-04-14 15:44:57 +0000 | [diff] [blame] | 386 | #if !defined(_LIBCPP_HAS_NO_ASAN) && !__has_feature(address_sanitizer) |
| 387 | #define _LIBCPP_HAS_NO_ASAN |
| 388 | #endif |
| 389 | |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 390 | #elif defined(__GNUC__) |
| 391 | |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 392 | #define _ALIGNAS(x) __attribute__((__aligned__(x))) |
Howard Hinnant | 67f7517 | 2012-08-19 17:14:47 +0000 | [diff] [blame] | 393 | #define _ALIGNAS_TYPE(x) __attribute__((__aligned__(__alignof(x)))) |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 394 | |
Richard Smith | cabd392 | 2012-07-26 02:04:22 +0000 | [diff] [blame] | 395 | #define _LIBCPP_NORETURN __attribute__((noreturn)) |
Howard Hinnant | 1e570a3 | 2011-05-31 13:13:49 +0000 | [diff] [blame] | 396 | |
Dimitry Andric | 5785d60 | 2015-02-05 07:40:48 +0000 | [diff] [blame] | 397 | #define _LIBCPP_UNUSED __attribute__((__unused__)) |
| 398 | |
Marshall Clow | 2072352 | 2014-06-26 01:07:56 +0000 | [diff] [blame] | 399 | #if _GNUC_VER >= 407 |
| 400 | #define _LIBCPP_UNDERLYING_TYPE(T) __underlying_type(T) |
| 401 | #define _LIBCPP_IS_LITERAL(T) __is_literal_type(T) |
Eric Fiselier | f739430 | 2015-06-13 07:08:02 +0000 | [diff] [blame^] | 402 | #define _LIBCPP_HAS_IS_FINAL |
| 403 | #endif |
| 404 | |
| 405 | #if defined(__GNUC__) && _GNUC_VER >= 403 |
| 406 | # define _LIBCPP_HAS_IS_BASE_OF |
Marshall Clow | 2072352 | 2014-06-26 01:07:56 +0000 | [diff] [blame] | 407 | #endif |
| 408 | |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 409 | #if !__EXCEPTIONS |
| 410 | #define _LIBCPP_NO_EXCEPTIONS |
| 411 | #endif |
| 412 | |
| 413 | #define _LIBCPP_HAS_NO_TEMPLATE_ALIASES |
Nico Weber | d04e475 | 2014-06-04 15:46:56 +0000 | [diff] [blame] | 414 | |
| 415 | // constexpr was added to GCC in 4.6. |
| 416 | #if _GNUC_VER < 406 |
Howard Hinnant | 62c8c0b | 2010-09-06 19:10:31 +0000 | [diff] [blame] | 417 | #define _LIBCPP_HAS_NO_CONSTEXPR |
Nico Weber | d04e475 | 2014-06-04 15:46:56 +0000 | [diff] [blame] | 418 | // Can only use constexpr in c++11 mode. |
| 419 | #elif !defined(__GXX_EXPERIMENTAL_CXX0X__) && __cplusplus < 201103L |
| 420 | #define _LIBCPP_HAS_NO_CONSTEXPR |
| 421 | #endif |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 422 | |
Eric Fiselier | b4c0c66 | 2014-07-17 05:16:18 +0000 | [diff] [blame] | 423 | // No version of GCC supports relaxed constexpr rules |
| 424 | #define _LIBCPP_HAS_NO_CXX14_CONSTEXPR |
Marshall Clow | faae698 | 2015-03-17 15:30:22 +0000 | [diff] [blame] | 425 | // GCC 5 will support variable templates |
| 426 | #define _LIBCPP_HAS_NO_VARIABLE_TEMPLATES |
Eric Fiselier | b4c0c66 | 2014-07-17 05:16:18 +0000 | [diff] [blame] | 427 | |
Howard Hinnant | 68d1339 | 2011-05-11 20:19:40 +0000 | [diff] [blame] | 428 | #define _NOEXCEPT throw() |
| 429 | #define _NOEXCEPT_(x) |
Marshall Clow | 0869d9f | 2014-01-03 18:21:14 +0000 | [diff] [blame] | 430 | #define _NOEXCEPT_OR_FALSE(x) false |
Howard Hinnant | 68d1339 | 2011-05-11 20:19:40 +0000 | [diff] [blame] | 431 | |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 432 | #ifndef __GXX_EXPERIMENTAL_CXX0X__ |
| 433 | |
| 434 | #define _LIBCPP_HAS_NO_ADVANCED_SFINAE |
| 435 | #define _LIBCPP_HAS_NO_DECLTYPE |
| 436 | #define _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS |
| 437 | #define _LIBCPP_HAS_NO_DELETED_FUNCTIONS |
| 438 | #define _LIBCPP_HAS_NO_NULLPTR |
| 439 | #define _LIBCPP_HAS_NO_STATIC_ASSERT |
| 440 | #define _LIBCPP_HAS_NO_UNICODE_CHARS |
| 441 | #define _LIBCPP_HAS_NO_VARIADICS |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 442 | #define _LIBCPP_HAS_NO_RVALUE_REFERENCES |
Howard Hinnant | 8b24e86 | 2011-04-21 14:29:59 +0000 | [diff] [blame] | 443 | #define _LIBCPP_HAS_NO_ALWAYS_INLINE_VARIADICS |
Logan Chien | 5eb2ac4 | 2013-12-14 06:44:09 +0000 | [diff] [blame] | 444 | #define _LIBCPP_HAS_NO_STRONG_ENUMS |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 445 | |
Howard Hinnant | 3b6579a | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 446 | #else // __GXX_EXPERIMENTAL_CXX0X__ |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 447 | |
Howard Hinnant | 9e9eb95 | 2010-11-16 21:10:23 +0000 | [diff] [blame] | 448 | #define _LIBCPP_HAS_NO_TRAILING_RETURN |
Howard Hinnant | 8b24e86 | 2011-04-21 14:29:59 +0000 | [diff] [blame] | 449 | #define _LIBCPP_HAS_NO_ALWAYS_INLINE_VARIADICS |
Howard Hinnant | 9e9eb95 | 2010-11-16 21:10:23 +0000 | [diff] [blame] | 450 | |
Howard Hinnant | cafe717 | 2012-10-03 20:48:05 +0000 | [diff] [blame] | 451 | #if _GNUC_VER < 403 |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 452 | #define _LIBCPP_HAS_NO_RVALUE_REFERENCES |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 453 | #endif |
| 454 | |
Howard Hinnant | cafe717 | 2012-10-03 20:48:05 +0000 | [diff] [blame] | 455 | #if _GNUC_VER < 403 |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 456 | #define _LIBCPP_HAS_NO_STATIC_ASSERT |
| 457 | #endif |
| 458 | |
Howard Hinnant | cafe717 | 2012-10-03 20:48:05 +0000 | [diff] [blame] | 459 | #if _GNUC_VER < 404 |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 460 | #define _LIBCPP_HAS_NO_DECLTYPE |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 461 | #define _LIBCPP_HAS_NO_DELETED_FUNCTIONS |
| 462 | #define _LIBCPP_HAS_NO_UNICODE_CHARS |
| 463 | #define _LIBCPP_HAS_NO_VARIADICS |
Howard Hinnant | 3371179 | 2011-08-12 21:56:02 +0000 | [diff] [blame] | 464 | #define _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS |
Howard Hinnant | cafe717 | 2012-10-03 20:48:05 +0000 | [diff] [blame] | 465 | #endif // _GNUC_VER < 404 |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 466 | |
Howard Hinnant | cafe717 | 2012-10-03 20:48:05 +0000 | [diff] [blame] | 467 | #if _GNUC_VER < 406 |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 468 | #define _LIBCPP_HAS_NO_NULLPTR |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 469 | #endif |
| 470 | |
Yaron Keren | 45ada6c | 2013-11-22 09:22:12 +0000 | [diff] [blame] | 471 | #if _GNUC_VER < 407 |
| 472 | #define _LIBCPP_HAS_NO_ADVANCED_SFINAE |
| 473 | #define _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS |
| 474 | #endif |
| 475 | |
Howard Hinnant | 3b6579a | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 476 | #endif // __GXX_EXPERIMENTAL_CXX0X__ |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 477 | |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 478 | #define _LIBCPP_BEGIN_NAMESPACE_STD namespace std { namespace _LIBCPP_NAMESPACE { |
| 479 | #define _LIBCPP_END_NAMESPACE_STD } } |
Howard Hinnant | b1ad5a8 | 2011-06-30 21:18:19 +0000 | [diff] [blame] | 480 | #define _VSTD std::_LIBCPP_NAMESPACE |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 481 | |
| 482 | namespace std { |
| 483 | namespace _LIBCPP_NAMESPACE { |
| 484 | } |
| 485 | using namespace _LIBCPP_NAMESPACE __attribute__((__strong__)); |
| 486 | } |
| 487 | |
Marshall Clow | 90fc047 | 2014-04-14 15:44:57 +0000 | [diff] [blame] | 488 | #if !defined(_LIBCPP_HAS_NO_ASAN) && !defined(__SANITIZE_ADDRESS__) |
| 489 | #define _LIBCPP_HAS_NO_ASAN |
| 490 | #endif |
| 491 | |
Howard Hinnant | 13d8bc1 | 2013-08-01 18:17:34 +0000 | [diff] [blame] | 492 | #elif defined(_LIBCPP_MSVC) |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 493 | |
Howard Hinnant | bf07402 | 2011-10-22 20:59:45 +0000 | [diff] [blame] | 494 | #define _LIBCPP_HAS_NO_TEMPLATE_ALIASES |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 495 | #define _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER |
| 496 | #define _LIBCPP_HAS_NO_CONSTEXPR |
Eric Fiselier | b4c0c66 | 2014-07-17 05:16:18 +0000 | [diff] [blame] | 497 | #define _LIBCPP_HAS_NO_CXX14_CONSTEXPR |
Marshall Clow | faae698 | 2015-03-17 15:30:22 +0000 | [diff] [blame] | 498 | #define _LIBCPP_HAS_NO_VARIABLE_TEMPLATES |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 499 | #define _LIBCPP_HAS_NO_UNICODE_CHARS |
| 500 | #define _LIBCPP_HAS_NO_DELETED_FUNCTIONS |
Howard Hinnant | 7908cde | 2013-08-24 21:31:37 +0000 | [diff] [blame] | 501 | #define _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 502 | #define __alignof__ __alignof |
Richard Smith | cabd392 | 2012-07-26 02:04:22 +0000 | [diff] [blame] | 503 | #define _LIBCPP_NORETURN __declspec(noreturn) |
Dimitry Andric | 5785d60 | 2015-02-05 07:40:48 +0000 | [diff] [blame] | 504 | #define _LIBCPP_UNUSED |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 505 | #define _ALIGNAS(x) __declspec(align(x)) |
| 506 | #define _LIBCPP_HAS_NO_VARIADICS |
| 507 | |
Yaron Keren | c40b537 | 2014-02-13 14:02:28 +0000 | [diff] [blame] | 508 | #define _NOEXCEPT throw () |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 509 | #define _NOEXCEPT_(x) |
Marshall Clow | 0869d9f | 2014-01-03 18:21:14 +0000 | [diff] [blame] | 510 | #define _NOEXCEPT_OR_FALSE(x) false |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 511 | |
| 512 | #define _LIBCPP_BEGIN_NAMESPACE_STD namespace std { |
| 513 | #define _LIBCPP_END_NAMESPACE_STD } |
| 514 | #define _VSTD std |
| 515 | |
Howard Hinnant | 33f0472 | 2013-10-04 23:56:37 +0000 | [diff] [blame] | 516 | # define _LIBCPP_WEAK |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 517 | namespace std { |
| 518 | } |
| 519 | |
Marshall Clow | 90fc047 | 2014-04-14 15:44:57 +0000 | [diff] [blame] | 520 | #define _LIBCPP_HAS_NO_ASAN |
| 521 | |
Howard Hinnant | ea38295 | 2013-08-14 18:00:20 +0000 | [diff] [blame] | 522 | #elif defined(__IBMCPP__) |
| 523 | |
| 524 | #define _ALIGNAS(x) __attribute__((__aligned__(x))) |
| 525 | #define _ALIGNAS_TYPE(x) __attribute__((__aligned__(__alignof(x)))) |
| 526 | #define _ATTRIBUTE(x) __attribute__((x)) |
| 527 | #define _LIBCPP_NORETURN __attribute__((noreturn)) |
Dimitry Andric | 5785d60 | 2015-02-05 07:40:48 +0000 | [diff] [blame] | 528 | #define _LIBCPP_UNUSED |
Howard Hinnant | ea38295 | 2013-08-14 18:00:20 +0000 | [diff] [blame] | 529 | |
| 530 | #define _NOEXCEPT throw() |
| 531 | #define _NOEXCEPT_(x) |
Marshall Clow | 0869d9f | 2014-01-03 18:21:14 +0000 | [diff] [blame] | 532 | #define _NOEXCEPT_OR_FALSE(x) false |
Howard Hinnant | ea38295 | 2013-08-14 18:00:20 +0000 | [diff] [blame] | 533 | |
| 534 | #define _LIBCPP_HAS_NO_TEMPLATE_ALIASES |
| 535 | #define _LIBCPP_HAS_NO_ADVANCED_SFINAE |
| 536 | #define _LIBCPP_HAS_NO_ALWAYS_INLINE_VARIADICS |
| 537 | #define _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS |
| 538 | #define _LIBCPP_HAS_NO_NULLPTR |
| 539 | #define _LIBCPP_HAS_NO_UNICODE_CHARS |
Howard Hinnant | ea38295 | 2013-08-14 18:00:20 +0000 | [diff] [blame] | 540 | #define _LIBCPP_HAS_IS_BASE_OF |
Eric Fiselier | f739430 | 2015-06-13 07:08:02 +0000 | [diff] [blame^] | 541 | #define _LIBCPP_HAS_IS_FINAL |
Marshall Clow | faae698 | 2015-03-17 15:30:22 +0000 | [diff] [blame] | 542 | #define _LIBCPP_HAS_NO_VARIABLE_TEMPLATES |
Howard Hinnant | ea38295 | 2013-08-14 18:00:20 +0000 | [diff] [blame] | 543 | |
| 544 | #if defined(_AIX) |
| 545 | #define __MULTILOCALE_API |
| 546 | #endif |
| 547 | |
| 548 | #define _LIBCPP_BEGIN_NAMESPACE_STD namespace std {inline namespace _LIBCPP_NAMESPACE { |
| 549 | #define _LIBCPP_END_NAMESPACE_STD } } |
| 550 | #define _VSTD std::_LIBCPP_NAMESPACE |
| 551 | |
| 552 | namespace std { |
| 553 | inline namespace _LIBCPP_NAMESPACE { |
| 554 | } |
| 555 | } |
| 556 | |
Marshall Clow | 90fc047 | 2014-04-14 15:44:57 +0000 | [diff] [blame] | 557 | #define _LIBCPP_HAS_NO_ASAN |
| 558 | |
Marshall Clow | 9083d64 | 2014-01-06 15:23:02 +0000 | [diff] [blame] | 559 | #endif // __clang__ || __GNUC__ || _MSC_VER || __IBMCPP__ |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 560 | |
| 561 | #ifdef _LIBCPP_HAS_NO_UNICODE_CHARS |
Howard Hinnant | aa87c0f | 2010-08-10 20:48:29 +0000 | [diff] [blame] | 562 | typedef unsigned short char16_t; |
| 563 | typedef unsigned int char32_t; |
Howard Hinnant | 3b6579a | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 564 | #endif // _LIBCPP_HAS_NO_UNICODE_CHARS |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 565 | |
Stephan Tolksdorf | 0efeb6c | 2014-03-26 19:45:52 +0000 | [diff] [blame] | 566 | #ifndef __SIZEOF_INT128__ |
| 567 | #define _LIBCPP_HAS_NO_INT128 |
| 568 | #endif |
| 569 | |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 570 | #ifdef _LIBCPP_HAS_NO_STATIC_ASSERT |
| 571 | |
| 572 | template <bool> struct __static_assert_test; |
| 573 | template <> struct __static_assert_test<true> {}; |
| 574 | template <unsigned> struct __static_assert_check {}; |
| 575 | #define static_assert(__b, __m) \ |
| 576 | typedef __static_assert_check<sizeof(__static_assert_test<(__b)>)> \ |
| 577 | _LIBCPP_CONCAT(__t, __LINE__) |
| 578 | |
Howard Hinnant | 3b6579a | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 579 | #endif // _LIBCPP_HAS_NO_STATIC_ASSERT |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 580 | |
| 581 | #ifdef _LIBCPP_HAS_NO_DECLTYPE |
Eric Fiselier | 1ac5484 | 2015-06-13 06:27:17 +0000 | [diff] [blame] | 582 | # if defined(__clang__) |
| 583 | # define _CLANG_VER (__clang_major__ * 100 + __clang_minor__) |
| 584 | # else |
| 585 | # define _CLANG_VER 0 |
| 586 | # endif |
| 587 | // Clang 3.0 and GCC 4.6 provide __decltype in all standard modes. |
| 588 | // XCode 5.0 is based off of Clang 3.3 SVN. We require Clang 3.3 |
| 589 | // be sure we have __decltype. |
| 590 | #if (defined(__apple_build_version__) && _CLANG_VER >= 500) || \ |
| 591 | (!defined(__apple_build_version__) && _CLANG_VER >= 303) || \ |
| 592 | _GNUC_VER >= 406 |
| 593 | # define decltype(__x) __decltype(__x) |
| 594 | #else |
| 595 | # define decltype(__x) __typeof__(__x) |
| 596 | #endif |
| 597 | #undef _CLANG_VER |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 598 | #endif |
| 599 | |
Howard Hinnant | 62c8c0b | 2010-09-06 19:10:31 +0000 | [diff] [blame] | 600 | #ifdef _LIBCPP_HAS_NO_CONSTEXPR |
Howard Hinnant | 664183b | 2012-04-02 00:40:41 +0000 | [diff] [blame] | 601 | #define _LIBCPP_CONSTEXPR |
| 602 | #else |
| 603 | #define _LIBCPP_CONSTEXPR constexpr |
Howard Hinnant | 62c8c0b | 2010-09-06 19:10:31 +0000 | [diff] [blame] | 604 | #endif |
| 605 | |
Howard Hinnant | 3d28422 | 2013-05-02 20:18:43 +0000 | [diff] [blame] | 606 | #ifdef _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS |
| 607 | #define _LIBCPP_DEFAULT {} |
| 608 | #else |
| 609 | #define _LIBCPP_DEFAULT = default; |
| 610 | #endif |
| 611 | |
Nuno Lopes | 22df2dc | 2012-06-28 16:47:34 +0000 | [diff] [blame] | 612 | #ifdef __GNUC__ |
Joerg Sonnenberger | 4944e0b | 2013-04-29 19:52:08 +0000 | [diff] [blame] | 613 | #define _NOALIAS __attribute__((__malloc__)) |
Nuno Lopes | 22df2dc | 2012-06-28 16:47:34 +0000 | [diff] [blame] | 614 | #else |
| 615 | #define _NOALIAS |
| 616 | #endif |
| 617 | |
Howard Hinnant | 44fd45e | 2010-10-05 13:38:23 +0000 | [diff] [blame] | 618 | #ifndef __has_feature |
Howard Hinnant | bb472a7 | 2010-10-04 19:01:30 +0000 | [diff] [blame] | 619 | #define __has_feature(__x) 0 |
| 620 | #endif |
| 621 | |
Richard Smith | 1f1c147 | 2014-06-04 19:54:15 +0000 | [diff] [blame] | 622 | #ifndef __has_builtin |
| 623 | #define __has_builtin(__x) 0 |
| 624 | #endif |
| 625 | |
Marshall Clow | d03f2c8 | 2013-11-19 19:16:03 +0000 | [diff] [blame] | 626 | #if __has_feature(cxx_explicit_conversions) || defined(__IBMCPP__) |
Howard Hinnant | 86a291f | 2012-02-21 21:46:43 +0000 | [diff] [blame] | 627 | # define _LIBCPP_EXPLICIT explicit |
| 628 | #else |
| 629 | # define _LIBCPP_EXPLICIT |
| 630 | #endif |
| 631 | |
Richard Smith | 1f1c147 | 2014-06-04 19:54:15 +0000 | [diff] [blame] | 632 | #if !__has_builtin(__builtin_operator_new) || !__has_builtin(__builtin_operator_delete) |
| 633 | # define _LIBCPP_HAS_NO_BUILTIN_OPERATOR_NEW_DELETE |
| 634 | #endif |
| 635 | |
Howard Hinnant | 09bc0c9 | 2011-12-02 19:36:40 +0000 | [diff] [blame] | 636 | #ifdef _LIBCPP_HAS_NO_STRONG_ENUMS |
Howard Hinnant | 8331b76 | 2013-03-06 23:30:19 +0000 | [diff] [blame] | 637 | #define _LIBCPP_DECLARE_STRONG_ENUM(x) struct _LIBCPP_TYPE_VIS x { enum __lx |
Howard Hinnant | 09bc0c9 | 2011-12-02 19:36:40 +0000 | [diff] [blame] | 638 | #define _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(x) \ |
Howard Hinnant | 49e145e | 2012-10-30 19:06:59 +0000 | [diff] [blame] | 639 | __lx __v_; \ |
| 640 | _LIBCPP_ALWAYS_INLINE x(__lx __v) : __v_(__v) {} \ |
| 641 | _LIBCPP_ALWAYS_INLINE explicit x(int __v) : __v_(static_cast<__lx>(__v)) {} \ |
Howard Hinnant | 09bc0c9 | 2011-12-02 19:36:40 +0000 | [diff] [blame] | 642 | _LIBCPP_ALWAYS_INLINE operator int() const {return __v_;} \ |
| 643 | }; |
| 644 | #else // _LIBCPP_HAS_NO_STRONG_ENUMS |
Howard Hinnant | 8331b76 | 2013-03-06 23:30:19 +0000 | [diff] [blame] | 645 | #define _LIBCPP_DECLARE_STRONG_ENUM(x) enum class _LIBCPP_TYPE_VIS x |
Howard Hinnant | 09bc0c9 | 2011-12-02 19:36:40 +0000 | [diff] [blame] | 646 | #define _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(x) |
| 647 | #endif // _LIBCPP_HAS_NO_STRONG_ENUMS |
| 648 | |
Howard Hinnant | 6148a9b | 2013-08-23 20:10:18 +0000 | [diff] [blame] | 649 | #ifdef _LIBCPP_DEBUG |
| 650 | # if _LIBCPP_DEBUG == 0 |
Howard Hinnant | 8ea9824 | 2013-08-23 17:37:05 +0000 | [diff] [blame] | 651 | # define _LIBCPP_DEBUG_LEVEL 1 |
Howard Hinnant | 6148a9b | 2013-08-23 20:10:18 +0000 | [diff] [blame] | 652 | # elif _LIBCPP_DEBUG == 1 |
Howard Hinnant | 8ea9824 | 2013-08-23 17:37:05 +0000 | [diff] [blame] | 653 | # define _LIBCPP_DEBUG_LEVEL 2 |
| 654 | # else |
Howard Hinnant | 6148a9b | 2013-08-23 20:10:18 +0000 | [diff] [blame] | 655 | # error Supported values for _LIBCPP_DEBUG are 0 and 1 |
Howard Hinnant | 8ea9824 | 2013-08-23 17:37:05 +0000 | [diff] [blame] | 656 | # endif |
| 657 | # define _LIBCPP_EXTERN_TEMPLATE(...) |
| 658 | #endif |
| 659 | |
Howard Hinnant | 862ca99 | 2012-11-06 21:08:48 +0000 | [diff] [blame] | 660 | #ifndef _LIBCPP_EXTERN_TEMPLATE |
Justin Bogner | 67105aa | 2014-08-15 17:58:56 +0000 | [diff] [blame] | 661 | #define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__; |
Howard Hinnant | 862ca99 | 2012-11-06 21:08:48 +0000 | [diff] [blame] | 662 | #endif |
| 663 | |
Howard Hinnant | 8ea9824 | 2013-08-23 17:37:05 +0000 | [diff] [blame] | 664 | #ifndef _LIBCPP_EXTERN_TEMPLATE2 |
| 665 | #define _LIBCPP_EXTERN_TEMPLATE2(...) extern template __VA_ARGS__; |
| 666 | #endif |
| 667 | |
Tim Northover | 0528f50 | 2014-03-30 14:59:12 +0000 | [diff] [blame] | 668 | #if defined(__APPLE__) && defined(__LP64__) && !defined(__x86_64__) |
Tim Northover | a4fb462 | 2014-03-30 11:34:26 +0000 | [diff] [blame] | 669 | #define _LIBCPP_NONUNIQUE_RTTI_BIT (1ULL << 63) |
| 670 | #endif |
| 671 | |
Ed Schouten | 13eb7dc | 2015-03-10 09:26:38 +0000 | [diff] [blame] | 672 | #if defined(__APPLE__) || defined(__FreeBSD__) || defined(_WIN32) || \ |
| 673 | defined(__sun__) || defined(__NetBSD__) || defined(__CloudABI__) |
Alexis Hunt | 1adf2aa | 2011-07-15 05:40:33 +0000 | [diff] [blame] | 674 | #define _LIBCPP_LOCALE__L_EXTENSIONS 1 |
| 675 | #endif |
Yaron Keren | 804da95 | 2013-12-20 13:19:45 +0000 | [diff] [blame] | 676 | |
Ed Schouten | 118b603 | 2015-03-11 16:39:36 +0000 | [diff] [blame] | 677 | #if !defined(_WIN32) && !defined(__ANDROID__) && !defined(_NEWLIB_VERSION) && \ |
| 678 | !defined(__CloudABI__) |
| 679 | #define _LIBCPP_HAS_CATOPEN 1 |
| 680 | #endif |
| 681 | |
Marshall Clow | 82378c0 | 2013-03-18 19:34:07 +0000 | [diff] [blame] | 682 | #ifdef __FreeBSD__ |
David Chisnall | 6ae8f35 | 2011-11-13 17:15:33 +0000 | [diff] [blame] | 683 | #define _DECLARE_C99_LDBL_MATH 1 |
| 684 | #endif |
Alexis Hunt | 1adf2aa | 2011-07-15 05:40:33 +0000 | [diff] [blame] | 685 | |
Marshall Clow | 82378c0 | 2013-03-18 19:34:07 +0000 | [diff] [blame] | 686 | #if defined(__APPLE__) || defined(__FreeBSD__) |
Howard Hinnant | f312e3e | 2011-09-28 23:39:33 +0000 | [diff] [blame] | 687 | #define _LIBCPP_HAS_DEFAULTRUNELOCALE |
Alexis Hunt | 5a4dd56 | 2011-07-09 01:09:31 +0000 | [diff] [blame] | 688 | #endif |
| 689 | |
Marshall Clow | 82378c0 | 2013-03-18 19:34:07 +0000 | [diff] [blame] | 690 | #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun__) |
Alexis Hunt | c2017f1 | 2011-07-09 03:40:04 +0000 | [diff] [blame] | 691 | #define _LIBCPP_WCTYPE_IS_MASK |
| 692 | #endif |
| 693 | |
Howard Hinnant | a5a4cb6 | 2013-11-14 22:52:25 +0000 | [diff] [blame] | 694 | #ifndef _LIBCPP_TRIVIAL_PAIR_COPY_CTOR |
| 695 | # define _LIBCPP_TRIVIAL_PAIR_COPY_CTOR 1 |
| 696 | #endif |
| 697 | |
Howard Hinnant | df7d11e | 2013-05-07 20:16:13 +0000 | [diff] [blame] | 698 | #ifndef _LIBCPP_STD_VER |
| 699 | # if __cplusplus <= 201103L |
| 700 | # define _LIBCPP_STD_VER 11 |
Marshall Clow | 348694e | 2014-06-06 22:31:09 +0000 | [diff] [blame] | 701 | # elif __cplusplus <= 201402L |
| 702 | # define _LIBCPP_STD_VER 14 |
Howard Hinnant | df7d11e | 2013-05-07 20:16:13 +0000 | [diff] [blame] | 703 | # else |
Marshall Clow | 348694e | 2014-06-06 22:31:09 +0000 | [diff] [blame] | 704 | # define _LIBCPP_STD_VER 15 // current year, or date of c++17 ratification |
Howard Hinnant | df7d11e | 2013-05-07 20:16:13 +0000 | [diff] [blame] | 705 | # endif |
| 706 | #endif // _LIBCPP_STD_VER |
| 707 | |
Marshall Clow | a2cbe0d | 2013-09-28 18:35:31 +0000 | [diff] [blame] | 708 | #if _LIBCPP_STD_VER > 11 |
| 709 | #define _LIBCPP_DEPRECATED [[deprecated]] |
| 710 | #else |
| 711 | #define _LIBCPP_DEPRECATED |
| 712 | #endif |
| 713 | |
Marshall Clow | 1045cee | 2013-07-15 14:57:19 +0000 | [diff] [blame] | 714 | #if _LIBCPP_STD_VER <= 11 |
Marshall Clow | ccaa0fb | 2013-08-27 20:18:59 +0000 | [diff] [blame] | 715 | #define _LIBCPP_EXPLICIT_AFTER_CXX11 |
Marshall Clow | a2cbe0d | 2013-09-28 18:35:31 +0000 | [diff] [blame] | 716 | #define _LIBCPP_DEPRECATED_AFTER_CXX11 |
Marshall Clow | 1045cee | 2013-07-15 14:57:19 +0000 | [diff] [blame] | 717 | #else |
Marshall Clow | ccaa0fb | 2013-08-27 20:18:59 +0000 | [diff] [blame] | 718 | #define _LIBCPP_EXPLICIT_AFTER_CXX11 explicit |
Marshall Clow | a2cbe0d | 2013-09-28 18:35:31 +0000 | [diff] [blame] | 719 | #define _LIBCPP_DEPRECATED_AFTER_CXX11 [[deprecated]] |
Marshall Clow | 1045cee | 2013-07-15 14:57:19 +0000 | [diff] [blame] | 720 | #endif |
| 721 | |
Eric Fiselier | b4c0c66 | 2014-07-17 05:16:18 +0000 | [diff] [blame] | 722 | #if _LIBCPP_STD_VER > 11 && !defined(_LIBCPP_HAS_NO_CXX14_CONSTEXPR) |
| 723 | #define _LIBCPP_CONSTEXPR_AFTER_CXX11 constexpr |
| 724 | #else |
| 725 | #define _LIBCPP_CONSTEXPR_AFTER_CXX11 |
| 726 | #endif |
| 727 | |
Marshall Clow | 2cd9d37 | 2014-05-08 14:14:06 +0000 | [diff] [blame] | 728 | #ifndef _LIBCPP_HAS_NO_ASAN |
| 729 | extern "C" void __sanitizer_annotate_contiguous_container( |
| 730 | const void *, const void *, const void *, const void *); |
| 731 | #endif |
| 732 | |
Howard Hinnant | 1308788 | 2013-10-04 21:24:21 +0000 | [diff] [blame] | 733 | // Try to find out if RTTI is disabled. |
| 734 | // g++ and cl.exe have RTTI on by default and define a macro when it is. |
| 735 | // g++ only defines the macro in 4.3.2 and onwards. |
| 736 | #if !defined(_LIBCPP_NO_RTTI) |
Alexey Volkov | 51353fd | 2014-09-03 14:30:39 +0000 | [diff] [blame] | 737 | # if defined(__GNUG__) && ((__GNUC__ >= 5) || (__GNUC__ == 4 && \ |
| 738 | (__GNUC_MINOR__ >= 3 || __GNUC_PATCHLEVEL__ >= 2))) && !defined(__GXX_RTTI) |
Howard Hinnant | 1308788 | 2013-10-04 21:24:21 +0000 | [diff] [blame] | 739 | # define _LIBCPP_NO_RTTI |
| 740 | # elif (defined(_MSC_VER) && !defined(__clang__)) && !defined(_CPPRTTI) |
| 741 | # define _LIBCPP_NO_RTTI |
| 742 | # endif |
| 743 | #endif |
| 744 | |
Howard Hinnant | 33f0472 | 2013-10-04 23:56:37 +0000 | [diff] [blame] | 745 | #ifndef _LIBCPP_WEAK |
| 746 | # define _LIBCPP_WEAK __attribute__((__weak__)) |
| 747 | #endif |
| 748 | |
Eric Fiselier | 715b416 | 2014-12-06 20:09:11 +0000 | [diff] [blame] | 749 | #if defined(_LIBCPP_HAS_NO_MONOTONIC_CLOCK) && !defined(_LIBCPP_HAS_NO_THREADS) |
| 750 | # error _LIBCPP_HAS_NO_MONOTONIC_CLOCK may only be defined when \ |
| 751 | _LIBCPP_HAS_NO_THREADS is defined. |
| 752 | #endif |
| 753 | |
Ed Schouten | 7009f4e | 2015-03-12 15:44:39 +0000 | [diff] [blame] | 754 | // Systems that use capability-based security (FreeBSD with Capsicum, |
| 755 | // Nuxi CloudABI) may only provide local filesystem access (using *at()). |
| 756 | // Functions like open(), rename(), unlink() and stat() should not be |
| 757 | // used, as they attempt to access the global filesystem namespace. |
| 758 | #ifdef __CloudABI__ |
| 759 | #define _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE |
| 760 | #endif |
| 761 | |
Ed Schouten | 3a75c0b | 2015-03-26 14:35:46 +0000 | [diff] [blame] | 762 | // CloudABI is intended for running networked services. Processes do not |
| 763 | // have standard input and output channels. |
| 764 | #ifdef __CloudABI__ |
| 765 | #define _LIBCPP_HAS_NO_STDIN |
| 766 | #define _LIBCPP_HAS_NO_STDOUT |
| 767 | #endif |
| 768 | |
Ed Schouten | 8451ac0 | 2015-03-12 15:48:06 +0000 | [diff] [blame] | 769 | #if defined(__ANDROID__) || defined(__CloudABI__) |
Dan Albert | ebdf28b | 2015-03-11 00:51:06 +0000 | [diff] [blame] | 770 | #define _LIBCPP_PROVIDES_DEFAULT_RUNE_TABLE |
| 771 | #endif |
| 772 | |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 773 | #endif // _LIBCPP_CONFIG |