Unbreak traits tests by handling differences between version macros in clang/apple-clang.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@276200 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -34,6 +34,14 @@
|
||||
#define TEST_HAS_BUILTIN(X) 0
|
||||
#endif
|
||||
|
||||
#if defined(__apple_build_version__)
|
||||
#define TEST_APPLE_CLANG_VER (__clang_major__ * 100) + __clang_minor__
|
||||
#elif defined(__clang_major__)
|
||||
#define TEST_CLANG_VER (__clang_major__ * 100) + __clang_minor__
|
||||
#elif defined(__GNUC__)
|
||||
#define TEST_GCC_VER (__GNUC__ * 100 + __GNUC_MINOR__)
|
||||
#endif
|
||||
|
||||
/* Make a nice name for the standard version */
|
||||
#ifndef TEST_STD_VER
|
||||
#if __cplusplus <= 199711L
|
||||
|
||||
Reference in New Issue
Block a user