21 #ifndef CRYPTOPP_CONFIG_CXX_H 22 #define CRYPTOPP_CONFIG_CXX_H 34 #if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__MWERKS__) || (defined(_STLPORT_VERSION) && ((_STLPORT_VERSION < 0x450) || defined(_STLP_NO_UNCAUGHT_EXCEPT_SUPPORT))) 35 #define CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION 39 #ifndef CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION 40 # define CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE 1 41 # define CRYPTOPP_CXX98_UNCAUGHT_EXCEPTION 1 46 # define __has_feature(x) 0 60 #if !defined(CRYPTOPP_NO_CXX11) 61 # if ((_MSC_VER >= 1600) || (__cplusplus >= 201103L)) && !defined(_STLPORT_VERSION) 62 # define CRYPTOPP_CXX11 1 72 #if defined(__APPLE__) && defined(__clang__) 73 # if !(defined(__has_include) && __has_include(<forward_list>)) 74 # undef CRYPTOPP_CXX11 79 #if defined(CRYPTOPP_CXX11) && !defined(CRYPTOPP_NO_CXX14) 80 # if ((_MSC_VER >= 1900) || (__cplusplus >= 201402L)) && !defined(_STLPORT_VERSION) 81 # define CRYPTOPP_CXX14 1 86 #if defined(CRYPTOPP_CXX14) && !defined(CRYPTOPP_NO_CXX17) 87 # if ((_MSC_VER >= 1900) || (__cplusplus >= 201703L)) && !defined(_STLPORT_VERSION) 88 # define CRYPTOPP_CXX17 1 94 #if defined(CRYPTOPP_CXX11) 97 #if (CRYPTOPP_MSC_VERSION >= 1700) || __has_feature(cxx_atomic) || \ 98 (__INTEL_COMPILER >= 1300) || (CRYPTOPP_GCC_VERSION >= 40400) || (__SUNPRO_CC >= 0x5140) 99 # define CRYPTOPP_CXX11_ATOMIC 1 104 #if (CRYPTOPP_MSC_VERSION >= 1700) || (CRYPTOPP_LLVM_CLANG_VERSION >= 30300) || \ 105 (CRYPTOPP_APPLE_CLANG_VERSION >= 50000) || (__INTEL_COMPILER >= 1200) || \ 106 (CRYPTOPP_GCC_VERSION >= 40400) || (__SUNPRO_CC >= 0x5130) 113 # if !defined(__GLIBCXX__) || defined(_GLIBCXX_HAS_GTHREADS) 114 # define CRYPTOPP_CXX11_SYNCHRONIZATION 1 116 #endif // synchronization 123 #if (__cpp_threadsafe_static_init >= 200806) || \ 124 (CRYPTOPP_MSC_VERSION >= 1900) && ((WINVER >= 0x0600) || (_WIN32_WINNT >= 0x0600)) || \ 125 (CRYPTOPP_LLVM_CLANG_VERSION >= 20900) || (CRYPTOPP_APPLE_CLANG_VERSION >= 40000) || \ 126 (__INTEL_COMPILER >= 1110) || (CRYPTOPP_GCC_VERSION >= 40300) || (__SUNPRO_CC >= 0x5130) 127 # define CRYPTOPP_CXX11_STATIC_INIT 1 128 #endif // Dynamic Initialization compilers 131 #if (CRYPTOPP_MSC_VERSION >= 1800) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20900) || \ 132 (CRYPTOPP_APPLE_CLANG_VERSION >= 40000) || (__INTEL_COMPILER >= 1210) || \ 133 (CRYPTOPP_GCC_VERSION >= 40300) || (__SUNPRO_CC >= 0x5130) 134 # define CRYPTOPP_CXX11_DELETED_FUNCTIONS 1 135 #endif // deleted functions 138 #if (CRYPTOPP_MSC_VERSION >= 1900) || __has_feature(cxx_alignas) || \ 139 (__INTEL_COMPILER >= 1500) || (CRYPTOPP_GCC_VERSION >= 40800) || (__SUNPRO_CC >= 0x5130) 140 # define CRYPTOPP_CXX11_ALIGNAS 1 144 #if (CRYPTOPP_MSC_VERSION >= 1900) || __has_feature(cxx_alignof) || \ 145 (__INTEL_COMPILER >= 1500) || (CRYPTOPP_GCC_VERSION >= 40500) || (__SUNPRO_CC >= 0x5130) 146 # define CRYPTOPP_CXX11_ALIGNOF 1 150 #if (CRYPTOPP_MSC_VERSION >= 1800) || (CRYPTOPP_LLVM_CLANG_VERSION >= 30100) || \ 151 (CRYPTOPP_APPLE_CLANG_VERSION >= 40000) || (__INTEL_COMPILER >= 1400) || \ 152 (CRYPTOPP_GCC_VERSION >= 40400) || (__SUNPRO_CC >= 0x5130) 153 # define CRYPTOPP_CXX11_INITIALIZER_LIST 1 157 #if (CRYPTOPP_MSC_VERSION >= 1700) || __has_feature(cxx_lambdas) || \ 158 (__INTEL_COMPILER >= 1200) || (CRYPTOPP_GCC_VERSION >= 40900) || (__SUNPRO_CC >= 0x5140) 159 # define CRYPTOPP_CXX11_LAMBDA 1 163 #if (CRYPTOPP_MSC_VERSION >= 1900) || __has_feature(cxx_noexcept) || \ 164 (__INTEL_COMPILER >= 1400) || (CRYPTOPP_GCC_VERSION >= 40600) || (__SUNPRO_CC >= 0x5130) 165 # define CRYPTOPP_CXX11_NOEXCEPT 1 166 #endif // noexcept compilers 169 #if (__cpp_variadic_templates >= 200704) || __has_feature(cxx_variadic_templates) || \ 170 (CRYPTOPP_MSC_VERSION >= 1800) || (__INTEL_COMPILER >= 1210) || \ 171 (CRYPTOPP_GCC_VERSION >= 40300) || (__SUNPRO_CC >= 0x5130) 172 # define CRYPTOPP_CXX11_VARIADIC_TEMPLATES 1 173 #endif // variadic templates 177 #if (__cpp_constexpr >= 200704) || __has_feature(cxx_constexpr) || \ 178 (CRYPTOPP_MSC_VERSION >= 1900) || (__INTEL_COMPILER >= 1600) || \ 179 (CRYPTOPP_GCC_VERSION >= 40600) || (__SUNPRO_CC >= 0x5130) 180 # define CRYPTOPP_CXX11_CONSTEXPR 1 181 #endif // constexpr compilers 185 #if (CRYPTOPP_MSC_VERSION >= 1700) || __has_feature(cxx_strong_enums) || \ 186 (__INTEL_COMPILER >= 1400) || (CRYPTOPP_GCC_VERSION >= 40400) || (__SUNPRO_CC >= 0x5120) 187 # define CRYPTOPP_CXX11_STRONG_ENUM 1 188 #endif // constexpr compilers 191 #if (CRYPTOPP_MSC_VERSION >= 1600) || __has_feature(cxx_nullptr) || \ 192 (__INTEL_COMPILER >= 1000) || (CRYPTOPP_GCC_VERSION >= 40600) || \ 193 (__SUNPRO_CC >= 0x5130) || defined(__IBMCPP_NULLPTR) 194 # define CRYPTOPP_CXX11_NULLPTR 1 195 #endif // nullptr_t compilers 197 #endif // CRYPTOPP_CXX11 201 #if defined(CRYPTOPP_CXX14) 205 #if (__cpp_static_assert >= 201411) 206 # define CRYPTOPP_CXX17_STATIC_ASSERT 1 207 #endif // static_assert 214 #if defined(CRYPTOPP_CXX17) 221 #if defined(__clang__) 222 # if __EXCEPTIONS && __has_feature(cxx_exceptions) 223 # if __cpp_lib_uncaught_exceptions >= 201411L 224 # define CRYPTOPP_CXX17_UNCAUGHT_EXCEPTIONS 1 227 #elif (CRYPTOPP_MSC_VERSION >= 1900) || (__INTEL_COMPILER >= 1800) || \ 228 (CRYPTOPP_GCC_VERSION >= 60000) || (__cpp_lib_uncaught_exceptions >= 201411L) 229 # define CRYPTOPP_CXX17_UNCAUGHT_EXCEPTIONS 1 230 #endif // uncaught_exceptions compilers 232 #endif // CRYPTOPP_CXX17 236 #if defined(CRYPTOPP_CXX11_NOEXCEPT) 237 # define CRYPTOPP_THROW noexcept(false) 238 # define CRYPTOPP_NO_THROW noexcept(true) 240 # define CRYPTOPP_THROW 241 # define CRYPTOPP_NO_THROW 242 #endif // CRYPTOPP_CXX11_NOEXCEPT 245 #if defined(CRYPTOPP_CXX11_NULLPTR) && !defined(NULLPTR) 246 # define NULLPTR nullptr 247 #elif !defined(NULLPTR) 248 # define NULLPTR NULL 249 #endif // CRYPTOPP_CXX11_NULLPTR 251 #endif // CRYPTOPP_CONFIG_CXX_H Library configuration file.
Library configuration file.
Library configuration file.