summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/experimental
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-06-30 21:35:51 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-07-01 00:15:43 +0100
commit36adced3b6b7cae17d7b42e4573bd0f4194b1f70 (patch)
tree5b294a32ba73980e66db6e3adb7ca86c91b588f8 /libstdc++-v3/include/experimental
parent996be6b670b9f85727a6ae98c8095ca9cfbc0f67 (diff)
libstdc++: Make <experimental/simd> depend on C++17
Signed-off-by: Jonathan Wakely <jwakely@redhat.com> libstdc++-v3/ChangeLog: * include/experimental/simd: Do not define anything pre-C++17.
Diffstat (limited to 'libstdc++-v3/include/experimental')
-rw-r--r--libstdc++-v3/include/experimental/simd3
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/include/experimental/simd b/libstdc++-v3/include/experimental/simd
index da2d0479cf3..beccbc14fa5 100644
--- a/libstdc++-v3/include/experimental/simd
+++ b/libstdc++-v3/include/experimental/simd
@@ -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