| 1 |
/* SPDX-License-Identifier: BSL-1.0 OR BSD-3-Clause */ |
| 2 |
|
| 3 |
#ifndef MPT_BASE_DETECT_QUIRKS_HPP |
| 4 |
#define MPT_BASE_DETECT_QUIRKS_HPP |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
#include "mpt/base/detect_arch.hpp" |
| 9 |
#include "mpt/base/detect_compiler.hpp" |
| 10 |
#include "mpt/base/detect_libc.hpp" |
| 11 |
#include "mpt/base/detect_libcxx.hpp" |
| 12 |
#include "mpt/base/detect_os.hpp" |
| 13 |
|
| 14 |
#if MPT_CXX_AT_LEAST(20) |
| 15 |
#include <version> |
| 16 |
#else // !C++20 |
| 17 |
#include <array> |
| 18 |
#endif // C++20 |
| 19 |
|
| 20 |
#if MPT_LIBCXX_MS |
| 21 |
// for _ITERATOR_DEBUG_LEVEL |
| 22 |
#include <array> |
| 23 |
#endif // MPT_LIBCXX_MS |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
#if MPT_OS_DJGPP |
| 28 |
#define MPT_ARCH_QUIRK_NO_SIMD256 |
| 29 |
#endif |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
#if MPT_COMPILER_MSVC |
| 34 |
#if !defined(_MSVC_TRADITIONAL) |
| 35 |
#define MPT_COMPILER_QUIRK_MSVC_OLD_PREPROCESSOR |
| 36 |
#else |
| 37 |
#if _MSVC_TRADITIONAL |
| 38 |
#define MPT_COMPILER_QUIRK_MSVC_OLD_PREPROCESSOR |
| 39 |
#endif |
| 40 |
#endif |
| 41 |
#endif |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
#if MPT_GCC_BEFORE(9, 1, 0) |
| 46 |
#define MPT_COMPILER_QUIRK_NO_CONSTEXPR_THROW |
| 47 |
#endif |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
#if MPT_COMPILER_MSVC && MPT_MSVC_AT_LEAST(2022, 6) && MPT_MSVC_BEFORE(2022, 8) && MPT_ARCH_AARCH64 |
| 52 |
// VS2022 17.6.0 ARM64 gets confused about alignment in std::bit_cast (or equivalent code), |
| 53 |
// causing an ICE. |
| 54 |
// See <https://developercommunity.visualstudio.com/t/ICE-when-compiling-for-ARM64-due-to-alig/10367205>. |
| 55 |
#define MPT_COMPILER_QUIRK_BROKEN_BITCAST |
| 56 |
#endif |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
#if MPT_CXX_BEFORE(20) && MPT_COMPILER_MSVC |
| 61 |
// Compiler has multiplication/division semantics when shifting signed integers. |
| 62 |
// In C++20, this behaviour is required by the standard. |
| 63 |
#define MPT_COMPILER_SHIFT_SIGNED 1 |
| 64 |
#endif |
| 65 |
|
| 66 |
#ifndef MPT_COMPILER_SHIFT_SIGNED |
| 67 |
#define MPT_COMPILER_SHIFT_SIGNED 0 |
| 68 |
#endif |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
// This should really be based on __STDCPP_THREADS__, |
| 73 |
// but that is not defined consistently by GCC or clang. Stupid. |
| 74 |
// Just assume multithreaded and disable for platforms we know are |
| 75 |
// singlethreaded later on. |
| 76 |
#define MPT_PLATFORM_MULTITHREADED 1 |
| 77 |
|
| 78 |
#if MPT_OS_DJGPP |
| 79 |
#undef MPT_PLATFORM_MULTITHREADED |
| 80 |
#define MPT_PLATFORM_MULTITHREADED 0 |
| 81 |
#endif |
| 82 |
|
| 83 |
#if (MPT_OS_EMSCRIPTEN && !defined(__EMSCRIPTEN_PTHREADS__)) |
| 84 |
#undef MPT_PLATFORM_MULTITHREADED |
| 85 |
#define MPT_PLATFORM_MULTITHREADED 0 |
| 86 |
#endif |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
#if MPT_MSVC_BEFORE(2019, 0) || MPT_GCC_BEFORE(8, 1, 0) |
| 91 |
#define MPT_COMPILER_QUIRK_NO_AUTO_TEMPLATE_ARGUMENT |
| 92 |
#endif |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
#if MPT_GCC_BEFORE(11, 1, 0) |
| 97 |
#define MPT_COMPILER_QUIRK_NO_STDCPP_THREADS |
| 98 |
#elif MPT_CLANG_BEFORE(12, 0, 0) |
| 99 |
#define MPT_COMPILER_QUIRK_NO_STDCPP_THREADS |
| 100 |
#elif (defined(__MINGW32__) || defined(__MINGW64__)) && MPT_LIBCXX_GNU && defined(_GLIBCXX_HAS_GTHREADS) && !defined(__STDCPP_THREADS__) |
| 101 |
#define MPT_COMPILER_QUIRK_NO_STDCPP_THREADS |
| 102 |
#endif |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
#if !MPT_PLATFORM_MULTITHREADED |
| 107 |
#define MPT_LIBCXX_QUIRK_NO_STD_THREAD |
| 108 |
#elif !MPT_COMPILER_GENERIC && MPT_OS_WINDOWS && MPT_LIBCXX_GNU && !defined(_GLIBCXX_HAS_GTHREADS) |
| 109 |
#define MPT_LIBCXX_QUIRK_NO_STD_THREAD |
| 110 |
#endif |
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
#if MPT_OS_WINDOWS && MPT_COMPILER_MSVC |
| 115 |
#if MPT_WINNT_AT_LEAST(MPT_WIN_VISTA) |
| 116 |
#define MPT_LIBCXX_QUIRK_COMPLEX_STD_MUTEX |
| 117 |
#endif |
| 118 |
#endif |
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
#if MPT_OS_EMSCRIPTEN && defined(MPT_BUILD_AUDIOWORKLETPROCESSOR) |
| 123 |
#define MPT_COMPILER_QUIRK_CHRONO_NO_HIGH_RESOLUTION_CLOCK |
| 124 |
#endif |
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
#if MPT_OS_EMSCRIPTEN && defined(MPT_BUILD_AUDIOWORKLETPROCESSOR) |
| 129 |
#define MPT_COMPILER_QUIRK_RANDOM_NO_RANDOM_DEVICE |
| 130 |
#endif |
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
#if MPT_LIBCXX_GNU |
| 135 |
#if !defined(_GLIBCXX_USE_WCHAR_T) |
| 136 |
#ifndef MPT_COMPILER_QUIRK_NO_WCHAR |
| 137 |
#define MPT_COMPILER_QUIRK_NO_WCHAR |
| 138 |
#endif |
| 139 |
#endif |
| 140 |
#endif |
| 141 |
#if defined(__MINGW32__) && !defined(__MINGW64__) && (MPT_OS_WINDOWS_WIN9X || MPT_OS_WINDOWS_WIN32) |
| 142 |
#ifndef MPT_COMPILER_QUIRK_NO_WCHAR |
| 143 |
#define MPT_COMPILER_QUIRK_NO_WCHAR |
| 144 |
#endif |
| 145 |
#endif |
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
#if MPT_LIBCXX_LLVM_BEFORE(14000) |
| 150 |
#define MPT_COMPILER_QUIRK_NO_STRING_VIEW_ITERATOR_CTOR |
| 151 |
#endif |
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
#if MPT_LIBCXX_GNU_BEFORE(9) |
| 156 |
#define MPT_COMPILER_QUIRK_NO_FILESYSTEM |
| 157 |
#endif |
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
#if MPT_OS_WINDOWS && MPT_GCC_BEFORE(9, 1, 0) |
| 162 |
// GCC C++ library has no wchar_t overloads |
| 163 |
#define MPT_COMPILER_QUIRK_WINDOWS_FSTREAM_NO_WCHAR |
| 164 |
#endif |
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
#if MPT_COMPILER_GCC || MPT_COMPILER_CLANG |
| 169 |
|
| 170 |
#if defined(__FAST_MATH__) |
| 171 |
#define MPT_COMPILER_QUIRK_FASTMATH 1 |
| 172 |
#endif |
| 173 |
#if defined(__FINITE_MATH_ONLY__) |
| 174 |
#if (__FINITE_MATH_ONLY__ >= 1) |
| 175 |
#define MPT_COMPILER_QUIRK_FINITEMATH 1 |
| 176 |
#endif |
| 177 |
#endif |
| 178 |
|
| 179 |
#elif MPT_COMPILER_MSVC |
| 180 |
|
| 181 |
#if defined(_M_FP_FAST) |
| 182 |
#define MPT_COMPILER_QUIRK_FASTMATH 1 |
| 183 |
#define MPT_COMPILER_QUIRK_FINITEMATH 1 |
| 184 |
#endif |
| 185 |
|
| 186 |
#endif |
| 187 |
|
| 188 |
#ifndef MPT_COMPILER_QUIRK_FASTMATH |
| 189 |
#define MPT_COMPILER_QUIRK_FASTMATH 0 |
| 190 |
#endif |
| 191 |
|
| 192 |
#ifndef MPT_COMPILER_QUIRK_FINITEMATH |
| 193 |
#define MPT_COMPILER_QUIRK_FINITEMATH 0 |
| 194 |
#endif |
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
#if MPT_COMPILER_GCC && !defined(__arm__) |
| 199 |
#if defined(_SOFT_FLOAT) |
| 200 |
#define MPT_COMPILER_QUIRK_FLOAT_EMULATED 1 |
| 201 |
#endif |
| 202 |
#endif |
| 203 |
|
| 204 |
#if defined(__arm__) |
| 205 |
|
| 206 |
#if defined(__SOFTFP__) |
| 207 |
#define MPT_COMPILER_QUIRK_FLOAT_EMULATED 1 |
| 208 |
#else |
| 209 |
#define MPT_COMPILER_QUIRK_FLOAT_EMULATED 0 |
| 210 |
#endif |
| 211 |
#if defined(__VFP_FP__) |
| 212 |
// native-endian IEEE754 |
| 213 |
#define MPT_COMPILER_QUIRK_FLOAT_NOTNATIVEENDIAN 0 |
| 214 |
#define MPT_COMPILER_QUIRK_FLOAT_NOTIEEE754 0 |
| 215 |
#elif defined(__MAVERICK__) |
| 216 |
// little-endian IEEE754, we assume native-endian though |
| 217 |
#define MPT_COMPILER_QUIRK_FLOAT_NOTNATIVEENDIAN 1 |
| 218 |
#define MPT_COMPILER_QUIRK_FLOAT_NOTIEEE754 0 |
| 219 |
#else |
| 220 |
// not IEEE754 |
| 221 |
#define MPT_COMPILER_QUIRK_FLOAT_NOTNATIVEENDIAN 1 |
| 222 |
#define MPT_COMPILER_QUIRK_FLOAT_NOTIEEE754 1 |
| 223 |
#endif |
| 224 |
|
| 225 |
#elif defined(__mips__) |
| 226 |
|
| 227 |
#if defined(__mips_soft_float) |
| 228 |
#define MPT_COMPILER_QUIRK_FLOAT_EMULATED 1 |
| 229 |
#else |
| 230 |
#define MPT_COMPILER_QUIRK_FLOAT_EMULATED 0 |
| 231 |
#endif |
| 232 |
|
| 233 |
#endif |
| 234 |
|
| 235 |
#if MPT_OS_EMSCRIPTEN |
| 236 |
#define MPT_COMPILER_QUIRK_FLOAT_PREFER64 1 |
| 237 |
#endif |
| 238 |
|
| 239 |
#ifndef MPT_COMPILER_QUIRK_FLOAT_PREFER32 |
| 240 |
#define MPT_COMPILER_QUIRK_FLOAT_PREFER32 0 |
| 241 |
#endif |
| 242 |
#ifndef MPT_COMPILER_QUIRK_FLOAT_PREFER64 |
| 243 |
#define MPT_COMPILER_QUIRK_FLOAT_PREFER64 0 |
| 244 |
#endif |
| 245 |
#ifndef MPT_COMPILER_QUIRK_FLOAT_EMULATED |
| 246 |
#define MPT_COMPILER_QUIRK_FLOAT_EMULATED 0 |
| 247 |
#endif |
| 248 |
#ifndef MPT_COMPILER_QUIRK_FLOAT_NOTNATIVEENDIAN |
| 249 |
#define MPT_COMPILER_QUIRK_FLOAT_NOTNATIVEENDIAN 0 |
| 250 |
#endif |
| 251 |
#ifndef MPT_COMPILER_QUIRK_FLOAT_NOTIEEE754 |
| 252 |
#define MPT_COMPILER_QUIRK_FLOAT_NOTIEEE754 0 |
| 253 |
#endif |
| 254 |
|
| 255 |
|
| 256 |
|
| 257 |
#if MPT_LIBC_MINGW |
| 258 |
// MinGW32 runtime headers require __off64_t when including some C and/or C++ stdlib headers. |
| 259 |
// This is declared in <sys/types.h>, which howeger is not included in some header chains. |
| 260 |
#if (defined(__MINGW32__) && !defined(__MINGW64__)) |
| 261 |
#define MPT_LIBC_QUIRK_REQUIRES_SYS_TYPES_H |
| 262 |
#endif |
| 263 |
#endif |
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
#if MPT_LIBC_DJGPP |
| 268 |
#define MPT_LIBC_QUIRK_NO_FENV |
| 269 |
#endif |
| 270 |
|
| 271 |
|
| 272 |
|
| 273 |
#if MPT_OS_CYGWIN |
| 274 |
#define MPT_LIBCXX_QUIRK_BROKEN_USER_LOCALE |
| 275 |
// #define MPT_LIBCXX_QUIRK_ASSUME_USER_LOCALE_UTF8 |
| 276 |
#elif MPT_OS_HAIKU |
| 277 |
#define MPT_LIBCXX_QUIRK_BROKEN_USER_LOCALE |
| 278 |
#define MPT_LIBCXX_QUIRK_ASSUME_USER_LOCALE_UTF8 |
| 279 |
#endif |
| 280 |
|
| 281 |
|
| 282 |
|
| 283 |
// #define MPT_LIBCXX_QUIRK_BROKEN_ACTIVE_LOCALE |
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
#if MPT_OS_WINDOWS && MPT_LIBCXX_GNU |
| 288 |
#define MPT_LIBCXX_QUIRK_INCOMPLETE_IS_FUNCTION |
| 289 |
#endif |
| 290 |
|
| 291 |
|
| 292 |
|
| 293 |
#if MPT_CXX_AT_LEAST(20) |
| 294 |
#if MPT_LIBCXX_GNU_BEFORE(10) || MPT_LIBCXX_LLVM_BEFORE(13000) || (MPT_LIBCXX_MS && MPT_MSVC_BEFORE(2022, 0)) || (MPT_LIBCXX_MS && !MPT_COMPILER_MSVC) |
| 295 |
#define MPT_LIBCXX_QUIRK_NO_CXX20_CONSTEXPR_ALGORITHM |
| 296 |
#endif |
| 297 |
#endif |
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
#if MPT_CXX_AT_LEAST(20) |
| 302 |
#if MPT_LIBCXX_GNU_BEFORE(12) || MPT_LIBCXX_LLVM_BEFORE(15000) || (MPT_LIBCXX_MS && MPT_MSVC_BEFORE(2022, 0)) || (MPT_LIBCXX_MS && !MPT_COMPILER_MSVC) |
| 303 |
#ifndef MPT_LIBCXX_QUIRK_NO_CXX20_CONSTEXPR_CONTAINER |
| 304 |
#define MPT_LIBCXX_QUIRK_NO_CXX20_CONSTEXPR_CONTAINER |
| 305 |
#endif |
| 306 |
#endif |
| 307 |
#if MPT_LIBCXX_MS |
| 308 |
// So, in 2025, Microsoft still ships a STL that by default is not standard-compliant with its own default Debug options. |
| 309 |
// constexpr auto foo = std::vector<int>{}; does not compile with iterator debugging enabled (i.e. in Debug builds). |
| 310 |
// See <https://developercommunity.visualstudio.com/t/Iterator-Debugging-breaks-C20-constexp/10861623>. |
| 311 |
#if defined(_ITERATOR_DEBUG_LEVEL) |
| 312 |
#if (_ITERATOR_DEBUG_LEVEL >= 1) |
| 313 |
#ifndef MPT_LIBCXX_QUIRK_NO_CXX20_CONSTEXPR_CONTAINER |
| 314 |
#define MPT_LIBCXX_QUIRK_NO_CXX20_CONSTEXPR_CONTAINER |
| 315 |
#endif |
| 316 |
#endif |
| 317 |
#endif |
| 318 |
#endif |
| 319 |
#endif |
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
#if MPT_CXX_AT_LEAST(20) |
| 324 |
// Clang 14 is incompatible with libstdc++ 13 in C++20 mode |
| 325 |
#if MPT_CLANG_BEFORE(15, 0, 0) && MPT_LIBCXX_GNU_AT_LEAST(13) |
| 326 |
#define MPT_LIBCXX_QUIRK_NO_CHRONO |
| 327 |
#endif |
| 328 |
#endif |
| 329 |
|
| 330 |
#if MPT_CXX_AT_LEAST(20) |
| 331 |
#if MPT_LIBCXX_MS && MPT_OS_WINDOWS |
| 332 |
#if MPT_WIN_BEFORE(MPT_WIN_10_1903) |
| 333 |
// std::chrono timezones require Windows 10 1903 with VS2022 as of 2022-01-22. |
| 334 |
// See <https://github.com/microsoft/STL/issues/1911> and |
| 335 |
// <https://github.com/microsoft/STL/issues/2163>. |
| 336 |
#define MPT_LIBCXX_QUIRK_NO_CHRONO_DATE |
| 337 |
#endif |
| 338 |
#endif |
| 339 |
#if MPT_LIBCXX_GNU_BEFORE(11) |
| 340 |
#define MPT_LIBCXX_QUIRK_NO_CHRONO_DATE |
| 341 |
#elif MPT_LIBCXX_LLVM_BEFORE(7000) |
| 342 |
#define MPT_LIBCXX_QUIRK_NO_CHRONO_DATE |
| 343 |
#endif |
| 344 |
#if MPT_LIBCXX_MS && (MPT_MSVC_BEFORE(2022, 2) || !MPT_COMPILER_MSVC) |
| 345 |
#elif MPT_LIBCXX_GNU |
| 346 |
#define MPT_LIBCXX_QUIRK_NO_CHRONO_DATE_PARSE |
| 347 |
#endif |
| 348 |
#if MPT_LIBCXX_MS && (MPT_MSVC_BEFORE(2022, 15) || !MPT_COMPILER_MSVC) |
| 349 |
// Causes massive memory leaks. |
| 350 |
// See |
| 351 |
// <https://developercommunity.visualstudio.com/t/stdchronoget-tzdb-list-memory-leak/1644641> |
| 352 |
// / <https://github.com/microsoft/STL/issues/2504>. |
| 353 |
#define MPT_LIBCXX_QUIRK_CHRONO_TZ_MEMLEAK |
| 354 |
#endif |
| 355 |
#endif |
| 356 |
#if MPT_LIBCXX_GNU_BEFORE(13) |
| 357 |
#define MPT_LIBCXX_QUIRK_CHRONO_DATE_NO_ZONED_TIME |
| 358 |
#endif |
| 359 |
#if MPT_LIBCXX_LLVM |
| 360 |
// See <https://github.com/llvm/llvm-project/issues/99982> |
| 361 |
#define MPT_LIBCXX_QUIRK_CHRONO_DATE_NO_ZONED_TIME |
| 362 |
#endif |
| 363 |
#if MPT_MSVC_AT_LEAST(2022, 6) && MPT_MSVC_BEFORE(2022, 7) |
| 364 |
// std::chrono triggers ICE in VS2022 17.6.0, see <https://developercommunity.visualstudio.com/t/INTERNAL-COMPILER-ERROR-when-compiling-s/10366948>. |
| 365 |
#define MPT_LIBCXX_QUIRK_CHRONO_DATE_BROKEN_ZONED_TIME |
| 366 |
#endif |
| 367 |
|
| 368 |
|
| 369 |
|
| 370 |
#if MPT_LIBCXX_GNU_BEFORE(8) |
| 371 |
#define MPT_LIBCXX_QUIRK_NO_TO_CHARS_INT |
| 372 |
#elif MPT_LIBCXX_LLVM_BEFORE(7000) |
| 373 |
#define MPT_LIBCXX_QUIRK_NO_TO_CHARS_INT |
| 374 |
#elif MPT_OS_ANDROID && MPT_LIBCXX_LLVM_BEFORE(8000) |
| 375 |
#define MPT_LIBCXX_QUIRK_NO_TO_CHARS_INT |
| 376 |
#elif MPT_OS_MACOSX_OR_IOS |
| 377 |
#if defined(TARGET_OS_OSX) |
| 378 |
#if TARGET_OS_OSX |
| 379 |
#if !defined(MAC_OS_X_VERSION_10_15) |
| 380 |
#define MPT_LIBCXX_QUIRK_NO_TO_CHARS_INT |
| 381 |
#else |
| 382 |
#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_15) |
| 383 |
#define MPT_LIBCXX_QUIRK_NO_TO_CHARS_INT |
| 384 |
#endif |
| 385 |
#endif |
| 386 |
#endif |
| 387 |
#endif |
| 388 |
#endif |
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
#if (MPT_LIBCXX_MS && (MPT_MSVC_BEFORE(2019, 4) || !MPT_COMPILER_MSVC)) || MPT_LIBCXX_GNU_BEFORE(11) || MPT_LIBCXX_LLVM || MPT_LIBCXX_GENERIC |
| 393 |
#define MPT_LIBCXX_QUIRK_NO_TO_CHARS_FLOAT |
| 394 |
#endif |
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
#if MPT_OS_ANDROID && MPT_LIBCXX_LLVM_BEFORE(7000) |
| 399 |
#define MPT_LIBCXX_QUIRK_NO_HAS_UNIQUE_OBJECT_REPRESENTATIONS |
| 400 |
#endif |
| 401 |
|
| 402 |
|
| 403 |
|
| 404 |
#if MPT_OS_ANDROID && MPT_LIBCXX_LLVM_BEFORE(170000) |
| 405 |
#define MPT_LIBCXX_QUIRK_NO_NUMBERS |
| 406 |
#endif |
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
#if MPT_LIBCXX_GNU_BEFORE(13) || (MPT_LIBCXX_MS && !MPT_MSVC_AT_LEAST(2022, 7)) || MPT_LIBCXX_LLVM |
| 411 |
#define MPT_LIBCXX_QUIRK_NO_STDFLOAT |
| 412 |
#endif |
| 413 |
|
| 414 |
|
| 415 |
|
| 416 |
#if MPT_OS_MACOSX_OR_IOS |
| 417 |
#if defined(TARGET_OS_OSX) |
| 418 |
#if TARGET_OS_OSX |
| 419 |
#if !defined(MAC_OS_X_VERSION_10_14) |
| 420 |
#define MPT_LIBCXX_QUIRK_NO_OPTIONAL_VALUE |
| 421 |
#else |
| 422 |
#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_14) |
| 423 |
#define MPT_LIBCXX_QUIRK_NO_OPTIONAL_VALUE |
| 424 |
#endif |
| 425 |
#endif |
| 426 |
#endif |
| 427 |
#endif |
| 428 |
#endif |
| 429 |
|
| 430 |
|
| 431 |
|
| 432 |
#endif // MPT_BASE_DETECT_QUIRKS_HPP |