aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/cstdint
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/cstdint')
-rw-r--r--libcxx/include/cstdint9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcxx/include/cstdint b/libcxx/include/cstdint
index 83cda947b497..829d9398f387 100644
--- a/libcxx/include/cstdint
+++ b/libcxx/include/cstdint
@@ -142,8 +142,17 @@ Types:
#include <__assert> // all public C++ headers provide the assertion handler
#include <__config>
+
#include <stdint.h>
+#ifndef _LIBCPP_STDINT_H
+# error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.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