summaryrefslogtreecommitdiffstats
path: root/libcxx/include/errno.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/errno.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/errno.h')
-rw-r--r--libcxx/include/errno.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/include/errno.h b/libcxx/include/errno.h
index 3cda2aff7b3..556ef6112ec 100644
--- a/libcxx/include/errno.h
+++ b/libcxx/include/errno.h
@@ -24,12 +24,13 @@ Macros:
*/
#include <__config>
-#include_next <errno.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
#endif
+#include_next <errno.h>
+
#if !defined(EOWNERDEAD) || !defined(ENOTRECOVERABLE)
#ifdef ELAST
OpenPOWER on IntegriCloud