diff options
Diffstat (limited to 'libcxx/include/cctype')
| -rw-r--r-- | libcxx/include/cctype | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/include/cctype b/libcxx/include/cctype index 248f8d98000f..867e7d5b0b35 100644 --- a/libcxx/include/cctype +++ b/libcxx/include/cctype @@ -36,8 +36,16 @@ int toupper(int c); #include <__assert> // all public C++ headers provide the assertion handler #include <__config> + #include <ctype.h> +#ifndef _LIBCPP_CTYPE_H +# error <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.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. +#endif + #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header #endif |
