Go to the documentation of this file. 48 #ifndef ABSL_BASE_CONFIG_H_ 49 #define ABSL_BASE_CONFIG_H_ 59 #if defined(__APPLE__) 62 #include <Availability.h> 63 #include <TargetConditionals.h> 82 #define ABSL_HAVE_BUILTIN(x) __has_builtin(x) 84 #define ABSL_HAVE_BUILTIN(x) 0 91 #error ABSL_HAVE_TLS cannot be directly set 92 #elif defined(__linux__) && (defined(__clang__) || defined(_GLIBCXX_HAVE_TLS)) 93 #define ABSL_HAVE_TLS 1 102 #ifdef ABSL_HAVE_STD_IS_TRIVIALLY_DESTRUCTIBLE 103 #error ABSL_HAVE_STD_IS_TRIVIALLY_DESTRUCTIBLE cannot be directly set 104 #elif defined(_LIBCPP_VERSION) || \ 105 (!defined(__clang__) && defined(__GNUC__) && defined(__GLIBCXX__) && \ 106 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))) || \ 108 #define ABSL_HAVE_STD_IS_TRIVIALLY_DESTRUCTIBLE 1 122 #if defined(ABSL_HAVE_STD_IS_TRIVIALLY_CONSTRUCTIBLE) 123 #error ABSL_HAVE_STD_IS_TRIVIALLY_CONSTRUCTIBLE cannot be directly set 124 #elif defined(ABSL_HAVE_STD_IS_TRIVIALLY_ASSIGNABLE) 125 #error ABSL_HAVE_STD_IS_TRIVIALLY_ASSIGNABLE cannot directly set 126 #elif (defined(__clang__) && defined(_LIBCPP_VERSION)) || \ 127 (!defined(__clang__) && defined(__GNUC__) && \ 128 (__GNUC__ > 5 || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1)) && \ 129 (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__))) || \ 130 (defined(_MSC_VER) && !defined(__NVCC__)) 131 #define ABSL_HAVE_STD_IS_TRIVIALLY_CONSTRUCTIBLE 1 132 #define ABSL_HAVE_STD_IS_TRIVIALLY_ASSIGNABLE 1 139 #ifdef ABSL_HAVE_THREAD_LOCAL 140 #error ABSL_HAVE_THREAD_LOCAL cannot be directly set 141 #elif defined(__APPLE__) 152 #if __has_feature(cxx_thread_local) && \ 153 !(TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_9_0) 154 #define ABSL_HAVE_THREAD_LOCAL 1 156 #else // !defined(__APPLE__) 157 #define ABSL_HAVE_THREAD_LOCAL 1 172 #if defined(__ANDROID__) && defined(__clang__) 173 #if __has_include(<android/ndk-version.h>) 174 #include <android/ndk-version.h> 175 #endif // __has_include(<android/ndk-version.h>) 176 #if defined(__ANDROID__) && defined(__clang__) && defined(__NDK_MAJOR__) && \ 177 defined(__NDK_MINOR__) && \ 178 ((__NDK_MAJOR__ < 12) || ((__NDK_MAJOR__ == 12) && (__NDK_MINOR__ < 1))) 180 #undef ABSL_HAVE_THREAD_LOCAL 182 #endif // defined(__ANDROID__) && defined(__clang__) 197 #ifdef ABSL_HAVE_INTRINSIC_INT128 198 #error ABSL_HAVE_INTRINSIC_INT128 cannot be directly set 199 #elif defined(__SIZEOF_INT128__) 200 #if (defined(__clang__) && !defined(_WIN32)) || \ 201 (defined(__CUDACC__) && __CUDACC_VER_MAJOR__ >= 9) || \ 202 (defined(__GNUC__) && !defined(__clang__) && !defined(__CUDACC__)) 203 #define ABSL_HAVE_INTRINSIC_INT128 1 204 #elif defined(__CUDACC__) 209 #if __CUDACC_VER__ >= 70000 210 #define ABSL_HAVE_INTRINSIC_INT128 1 211 #endif // __CUDACC_VER__ >= 70000 212 #endif // defined(__CUDACC__) 213 #endif // ABSL_HAVE_INTRINSIC_INT128 227 #ifdef ABSL_HAVE_EXCEPTIONS 228 #error ABSL_HAVE_EXCEPTIONS cannot be directly set. 230 #elif defined(__clang__) 235 #if defined(__EXCEPTIONS) && __has_feature(cxx_exceptions) 236 #define ABSL_HAVE_EXCEPTIONS 1 237 #endif // defined(__EXCEPTIONS) && __has_feature(cxx_exceptions) 240 #elif !(defined(__GNUC__) && (__GNUC__ < 5) && !defined(__EXCEPTIONS)) && \ 241 !(defined(__GNUC__) && (__GNUC__ >= 5) && !defined(__cpp_exceptions)) && \ 242 !(defined(_MSC_VER) && !defined(_CPPUNWIND)) 243 #define ABSL_HAVE_EXCEPTIONS 1 271 #ifdef ABSL_HAVE_MMAP 272 #error ABSL_HAVE_MMAP cannot be directly set 273 #elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \ 274 defined(__ros__) || defined(__native_client__) || defined(__asmjs__) || \ 275 defined(__wasm__) || defined(__Fuchsia__) || defined(__sun) || \ 277 #define ABSL_HAVE_MMAP 1 284 #ifdef ABSL_HAVE_PTHREAD_GETSCHEDPARAM 285 #error ABSL_HAVE_PTHREAD_GETSCHEDPARAM cannot be directly set 286 #elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \ 288 #define ABSL_HAVE_PTHREAD_GETSCHEDPARAM 1 295 #ifdef ABSL_HAVE_SCHED_YIELD 296 #error ABSL_HAVE_SCHED_YIELD cannot be directly set 297 #elif defined(__linux__) || defined(__ros__) || defined(__native_client__) 298 #define ABSL_HAVE_SCHED_YIELD 1 310 #ifdef ABSL_HAVE_SEMAPHORE_H 311 #error ABSL_HAVE_SEMAPHORE_H cannot be directly set 312 #elif defined(__linux__) || defined(__ros__) 313 #define ABSL_HAVE_SEMAPHORE_H 1 320 #ifdef ABSL_HAVE_ALARM 321 #error ABSL_HAVE_ALARM cannot be directly set 322 #elif defined(__GOOGLE_GRTE_VERSION__) 324 #define ABSL_HAVE_ALARM 1 325 #elif defined(__GLIBC__) 327 #define ABSL_HAVE_ALARM 1 328 #elif defined(_MSC_VER) 330 #elif defined(__EMSCRIPTEN__) 332 #elif defined(__native_client__) 335 #define ABSL_HAVE_ALARM 1 347 #if defined(ABSL_IS_BIG_ENDIAN) 348 #error "ABSL_IS_BIG_ENDIAN cannot be directly set." 350 #if defined(ABSL_IS_LITTLE_ENDIAN) 351 #error "ABSL_IS_LITTLE_ENDIAN cannot be directly set." 354 #if (defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && \ 355 __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) 356 #define ABSL_IS_LITTLE_ENDIAN 1 357 #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && \ 358 __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ 359 #define ABSL_IS_BIG_ENDIAN 1 360 #elif defined(_WIN32) 361 #define ABSL_IS_LITTLE_ENDIAN 1 363 #error "absl endian detection needs to be set up for your compiler" 370 #if defined(__APPLE__) && defined(_LIBCPP_VERSION) && \ 371 defined(__MAC_OS_X_VERSION_MIN_REQUIRED__) && \ 372 __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101400 373 #define ABSL_INTERNAL_MACOS_CXX17_TYPES_UNAVAILABLE 1 375 #define ABSL_INTERNAL_MACOS_CXX17_TYPES_UNAVAILABLE 0 381 #ifdef ABSL_HAVE_STD_ANY 382 #error "ABSL_HAVE_STD_ANY cannot be directly set." 386 #if __has_include(<any>) && __cplusplus >= 201703L && \ 387 !ABSL_INTERNAL_MACOS_CXX17_TYPES_UNAVAILABLE 388 #define ABSL_HAVE_STD_ANY 1 395 #ifdef ABSL_HAVE_STD_OPTIONAL 396 #error "ABSL_HAVE_STD_OPTIONAL cannot be directly set." 400 #if __has_include(<optional>) && __cplusplus >= 201703L && \ 401 !ABSL_INTERNAL_MACOS_CXX17_TYPES_UNAVAILABLE 402 #define ABSL_HAVE_STD_OPTIONAL 1 409 #ifdef ABSL_HAVE_STD_VARIANT 410 #error "ABSL_HAVE_STD_VARIANT cannot be directly set." 414 #if __has_include(<variant>) && __cplusplus >= 201703L && \ 415 !ABSL_INTERNAL_MACOS_CXX17_TYPES_UNAVAILABLE 416 #define ABSL_HAVE_STD_VARIANT 1 423 #ifdef ABSL_HAVE_STD_STRING_VIEW 424 #error "ABSL_HAVE_STD_STRING_VIEW cannot be directly set." 428 #if __has_include(<string_view>) && __cplusplus >= 201703L 429 #define ABSL_HAVE_STD_STRING_VIEW 1 440 #if defined(_MSC_VER) && _MSC_VER >= 1910 && \ 441 ((defined(_MSVC_LANG) && _MSVC_LANG > 201402) || __cplusplus > 201402) 443 #define ABSL_HAVE_STD_OPTIONAL 1 444 #define ABSL_HAVE_STD_VARIANT 1 445 #define ABSL_HAVE_STD_STRING_VIEW 1 452 #if defined(_MSC_VER) && _MSC_VER >= 1700 && defined(_DEBUG) 453 #define ABSL_INTERNAL_MSVC_2017_DBG_MODE 456 #endif // ABSL_BASE_CONFIG_H_
abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:18