diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-09-04 00:48:54 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-09-04 00:48:54 +0000 |
commit | f49fe8f2b68c3a4e6d81dab780ec4c3798392940 (patch) | |
tree | 1ffd2fe4539cbb3268f32f0f77d01a296e2dd6ac /libcxx/test/support | |
parent | 82216f0faab3a97198aefef61c882af07d4cea39 (diff) | |
download | bcm5719-llvm-f49fe8f2b68c3a4e6d81dab780ec4c3798392940.tar.gz bcm5719-llvm-f49fe8f2b68c3a4e6d81dab780ec4c3798392940.zip |
Fix bad locale test data when using the newest glibc
llvm-svn: 280608
Diffstat (limited to 'libcxx/test/support')
-rw-r--r-- | libcxx/test/support/test_macros.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h index 752bcdaecdd..affd26ba033 100644 --- a/libcxx/test/support/test_macros.h +++ b/libcxx/test/support/test_macros.h @@ -62,6 +62,13 @@ #endif #endif +// Attempt to deduce GCC version +#if defined(_LIBCPP_VERSION) && __has_include(<features.h>) +#include <features.h> +#define TEST_HAS_GLIBC +#define TEST_GLIBC_PREREQ(major, minor) __GLIBC_PREREQ(major, minor) +#endif + /* Features that were introduced in C++14 */ #if TEST_STD_VER >= 14 #define TEST_HAS_EXTENDED_CONSTEXPR |