aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/clocale
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/clocale')
-rw-r--r--libcxx/include/clocale9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcxx/include/clocale b/libcxx/include/clocale
index 892604207532..e2ace355d7b6 100644
--- a/libcxx/include/clocale
+++ b/libcxx/include/clocale
@@ -36,8 +36,17 @@ lconv* localeconv();
#include <__assert> // all public C++ headers provide the assertion handler
#include <__config>
+
#include <locale.h>
+#ifndef _LIBCPP_LOCALE_H
+# error <clocale> tried including <locale.h> but didn't find libc++'s <locale.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