diff options
Diffstat (limited to 'libcxx/include/cwctype')
| -rw-r--r-- | libcxx/include/cwctype | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libcxx/include/cwctype b/libcxx/include/cwctype index 429b00c2446d..5a2d2427d847 100644 --- a/libcxx/include/cwctype +++ b/libcxx/include/cwctype @@ -52,8 +52,17 @@ wctrans_t wctrans(const char* property); #include <__assert> // all public C++ headers provide the assertion handler #include <__config> #include <cctype> + #include <wctype.h> +#ifndef _LIBCPP_WCTYPE_H +# error <cwctype> tried including <wctype.h> but didn't find libc++'s <wctype.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 |
