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
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 2999ea0f041659f6ec0cee0fa6ab119c382bfac2
diff --git a/include/float.h b/include/float.h
index 275388e..f890c68 100644
--- a/include/float.h
+++ b/include/float.h
@@ -61,12 +61,13 @@
*/
#include <__config>
-#include_next <float.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
#endif
+#include_next <float.h>
+
#ifndef FLT_EVAL_METHOD
#define FLT_EVAL_METHOD __FLT_EVAL_METHOD__
#endif