PR25118: move system_header pragma before uses of include_next to avoid extension warnings for people finding libc++ headers via -I paths.


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@249788 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/math.h b/include/math.h
index dc05622..2020554 100644
--- a/include/math.h
+++ b/include/math.h
@@ -293,12 +293,13 @@
 */
 
 #include <__config>
-#include_next <math.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #pragma GCC system_header
 #endif
 
+#include_next <math.h>
+
 #ifdef __cplusplus
 
 // We support including .h headers inside 'extern "C"' contexts, so switch