]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Move include guards to start of headers
authorJonathan Wakely <jwakely@redhat.com>
Tue, 5 Nov 2024 12:54:32 +0000 (12:54 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 6 Nov 2024 12:47:19 +0000 (12:47 +0000)
libstdc++-v3/ChangeLog:

* include/c_compatibility/complex.h (_GLIBCXX_COMPLEX_H): Move
include guard to start of the header.
* include/c_global/ctgmath (_GLIBCXX_CTGMATH): Likewise.

libstdc++-v3/include/c_compatibility/complex.h
libstdc++-v3/include/c_global/ctgmath

index 605d1f30e06e187b43a688c574baf4c59345aca1..a3102d9fce30becaf57a07bfc4f33ee9ed6b96b4 100644 (file)
@@ -26,6 +26,9 @@
  *  This is a Standard C++ Library header.
  */
 
+#ifndef _GLIBCXX_COMPLEX_H
+#define _GLIBCXX_COMPLEX_H 1
+
 #include <bits/c++config.h>
 
 #if __cplusplus >= 201103L
@@ -42,7 +45,4 @@
 # endif
 #endif
 
-#ifndef _GLIBCXX_COMPLEX_H
-#define _GLIBCXX_COMPLEX_H 1
-
 #endif
index 79c1a029f41d9726916f3f5913f1a6727d25ab86..39c17668f16a186d227bfa3d40264ce1a8bfc8c8 100644 (file)
  *  This is a Standard C++ Library header.
  */
 
+#ifndef _GLIBCXX_CTGMATH
+#define _GLIBCXX_CTGMATH 1
+
 #ifdef _GLIBCXX_SYSHDR
 #pragma GCC system_header
 #endif
 
-#ifndef _GLIBCXX_CTGMATH
-#define _GLIBCXX_CTGMATH 1
-
 #if __cplusplus < 201103L
 #  include <bits/c++0x_warning.h>
 #else