[libcxx-commits] [libcxx] r357267 - Mark fenv.h as a system header before the #include_next directive

Eric Fiselier via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 29 09:03:58 PDT 2019


Author: ericwf
Date: Fri Mar 29 09:03:57 2019
New Revision: 357267

URL: http://llvm.org/viewvc/llvm-project?rev=357267&view=rev
Log:
Mark fenv.h as a system header before the #include_next directive

This fixes a -Wgnu-include-next warning

Patch by dmauro.

Modified:
    libcxx/trunk/include/fenv.h

Modified: libcxx/trunk/include/fenv.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/fenv.h?rev=357267&r1=357266&r2=357267&view=diff
==============================================================================
--- libcxx/trunk/include/fenv.h (original)
+++ libcxx/trunk/include/fenv.h Fri Mar 29 09:03:57 2019
@@ -51,12 +51,13 @@ int feupdateenv(const fenv_t* envp);
 */
 
 #include <__config>
-#include_next <fenv.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #pragma GCC system_header
 #endif
 
+#include_next <fenv.h>
+
 #ifdef __cplusplus
 
 extern "C++" {




More information about the libcxx-commits mailing list