[libc++][nfc] Add TEST_HAS_NO_INT128.
authorMark de Wever <koraq@xs4all.nl>
Sat, 12 Feb 2022 19:06:21 +0000 (20:06 +0100)
committerMark de Wever <koraq@xs4all.nl>
Sat, 12 Feb 2022 19:07:58 +0000 (20:07 +0100)
This avoids using an libc++ internal macro in our tests.

D117992 removed them, but it seems new occurrences have been introduced.

libcxx/test/std/utilities/format/format.formatter/format.formatter.spec/types.compile.pass.cpp

index 4db4f01..458beb5 100644 (file)
@@ -135,7 +135,7 @@ void test_P0645() {
   assert_formatter_is_enabled<signed int, CharT>();
   assert_formatter_is_enabled<signed long, CharT>();
   assert_formatter_is_enabled<signed long long, CharT>();
-#ifndef _LIBCPP_HAS_NO_INT128
+#ifndef TEST_HAS_NO_INT128
   assert_formatter_is_enabled<__int128_t, CharT>();
 #endif
 
@@ -144,7 +144,7 @@ void test_P0645() {
   assert_formatter_is_enabled<unsigned int, CharT>();
   assert_formatter_is_enabled<unsigned long, CharT>();
   assert_formatter_is_enabled<unsigned long long, CharT>();
-#ifndef _LIBCPP_HAS_NO_INT128
+#ifndef TEST_HAS_NO_INT128
   assert_formatter_is_enabled<__uint128_t, CharT>();
 #endif