]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add include guard to simd-internal header
authorMatthias Kretz <m.kretz@gsi.de>
Wed, 17 Apr 2024 08:12:42 +0000 (10:12 +0200)
committerMatthias Kretz <m.kretz@gsi.de>
Tue, 7 May 2024 16:14:52 +0000 (18:14 +0200)
Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
libstdc++-v3/ChangeLog:

* include/experimental/bits/numeric_traits.h: Add include guard.

(cherry picked from commit 3cfe94ad28102618c14a91c0a83d9e5cc7df69d7)

libstdc++-v3/include/experimental/bits/numeric_traits.h

index be9282ede261d189e647920d469d5ec1df6ae6e1..c2cbfd80c2e71845fb2d5d202d296da312061e8c 100644 (file)
@@ -22,6 +22,9 @@
 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 // <http://www.gnu.org/licenses/>.
 
+#ifndef _GLIBCXX_EXPERIMENTAL_BITS_NUMERIC_TRAITS_H
+#define _GLIBCXX_EXPERIMENTAL_BITS_NUMERIC_TRAITS_H
+
 #include <type_traits>
 
 namespace std {
@@ -565,3 +568,4 @@ template <>
 #endif // __FINITE_MATH_ONLY__
 
 } // namespace std
+#endif  // _GLIBCXX_EXPERIMENTAL_BITS_NUMERIC_TRAITS_H