summaryrefslogtreecommitdiffstats
path: root/libcxx/include/inttypes.h
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-10-09 00:26:50 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-10-09 00:26:50 +0000
commit2999ea0f041659f6ec0cee0fa6ab119c382bfac2 (patch)
tree0253e6b1332632104fbe64e1f5a663ec8d34aa9b /libcxx/include/inttypes.h
parent18677d51e04af0b4a11212047dbbeefdd0231869 (diff)
downloadbcm5719-llvm-2999ea0f041659f6ec0cee0fa6ab119c382bfac2.tar.gz
bcm5719-llvm-2999ea0f041659f6ec0cee0fa6ab119c382bfac2.zip
PR25118: move system_header pragma before uses of include_next to avoid extension warnings for people finding libc++ headers via -I paths.
llvm-svn: 249788
Diffstat (limited to 'libcxx/include/inttypes.h')
-rw-r--r--libcxx/include/inttypes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/include/inttypes.h b/libcxx/include/inttypes.h
index a20a5619133..328e57e5e4e 100644
--- a/libcxx/include/inttypes.h
+++ b/libcxx/include/inttypes.h
@@ -232,12 +232,13 @@ uintmax_t wcstoumax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int
*/
#include <__config>
-#include_next <inttypes.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
#endif
+#include_next <inttypes.h>
+
#ifdef __cplusplus
#include <stdint.h>
OpenPOWER on IntegriCloud