diff options
Diffstat (limited to 'libcxx/include/cstdio')
| -rw-r--r-- | libcxx/include/cstdio | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libcxx/include/cstdio b/libcxx/include/cstdio index d191086a85da..221b0b314cf9 100644 --- a/libcxx/include/cstdio +++ b/libcxx/include/cstdio @@ -97,8 +97,17 @@ void perror(const char* s); #include <__assert> // all public C++ headers provide the assertion handler #include <__config> + #include <stdio.h> +#ifndef _LIBCPP_STDIO_H +# error <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header. \ + This usually means that your header search paths are not configured properly. \ + The header search paths should contain the C++ Standard Library headers before \ + any C Standard Library, and you are probably using compiler flags that make that \ + not be the case. +#endif + #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header #endif |
