diff --git a/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp --- a/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp +++ b/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp @@ -156,11 +156,11 @@ static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); -#ifndef _LIBCPP_HAS_NO_FGETPOS_FSETPOS +#ifndef TEST_HAS_NO_FGETPOS_FSETPOS static_assert((std::is_same::value), ""); #endif static_assert((std::is_same::value), ""); -#ifndef _LIBCPP_HAS_NO_FGETPOS_FSETPOS +#ifndef TEST_HAS_NO_FGETPOS_FSETPOS static_assert((std::is_same::value), ""); #endif static_assert((std::is_same::value), ""); diff --git a/libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp b/libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp --- a/libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp +++ b/libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp @@ -122,11 +122,11 @@ static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); -#ifndef _LIBCPP_HAS_NO_FGETPOS_FSETPOS +#ifndef TEST_HAS_NO_FGETPOS_FSETPOS static_assert((std::is_same::value), ""); #endif static_assert((std::is_same::value), ""); -#ifndef _LIBCPP_HAS_NO_FGETPOS_FSETPOS +#ifndef TEST_HAS_NO_FGETPOS_FSETPOS static_assert((std::is_same::value), ""); #endif static_assert((std::is_same::value), ""); diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h --- a/libcxx/test/support/test_macros.h +++ b/libcxx/test/support/test_macros.h @@ -392,6 +392,10 @@ # define TEST_HAS_NO_FILESYSTEM_LIBRARY #endif +#if defined(_LIBCPP_HAS_NO_FGETPOS_FSETPOS) +# define TEST_HAS_NO_FGETPOS_FSETPOS +#endif + #if defined(__GNUC__) #pragma GCC diagnostic pop #endif