]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Make <experimental/simd> depend on C++17
authorJonathan Wakely <jwakely@redhat.com>
Wed, 30 Jun 2021 20:35:51 +0000 (21:35 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 15 Jul 2021 19:53:24 +0000 (20:53 +0100)
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

* include/experimental/simd: Do not define anything pre-C++17.

(cherry picked from commit 36adced3b6b7cae17d7b42e4573bd0f4194b1f70)

libstdc++-v3/include/experimental/simd

index da2d0479cf3bb2050249ccbc7e10e612dcda6dc7..beccbc14fa54820395329a9a977601c16351ed5f 100644 (file)
@@ -33,6 +33,8 @@
 #ifndef _GLIBCXX_EXPERIMENTAL_SIMD
 #define _GLIBCXX_EXPERIMENTAL_SIMD
 
+#if __cplusplus >= 201703L
+
 #define __cpp_lib_experimental_parallel_simd 201803
 
 #pragma GCC diagnostic push
@@ -66,5 +68,6 @@
 
 #pragma GCC diagnostic pop
 
+#endif // C++17
 #endif // _GLIBCXX_EXPERIMENTAL_SIMD
 // vim: ft=cpp