diff options
Diffstat (limited to 'libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp')
-rw-r--r-- | libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 index 4c2be7d4aa9..5df8691ef1f 100644 --- 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 @@ -12,6 +12,8 @@ #include <cstdio> #include <type_traits> +#include "test_macros.h" + #ifndef BUFSIZ #error BUFSIZ not defined #endif @@ -140,7 +142,7 @@ int main() #ifndef _LIBCPP_HAS_NO_STDIN static_assert((std::is_same<decltype(std::getchar()), int>::value), ""); -#if _LIBCPP_STD_VER <= 11 +#if TEST_STD_VER <= 11 static_assert((std::is_same<decltype(std::gets(cp)), char*>::value), ""); #endif static_assert((std::is_same<decltype(std::scanf(" ")), int>::value), ""); |