summaryrefslogtreecommitdiff
path: root/ACE
diff options
context:
space:
mode:
authorErich Ponstingl <erich.ponstingl@gmx.net>2022-08-26 14:58:39 +0200
committerErich Ponstingl <erich.ponstingl@gmx.net>2022-08-26 14:58:39 +0200
commitfc83f54e9330f3c325460f1f01cb4a10ef570f6f (patch)
treeeaab64339ab06a4517adbb9673023e1a551dd844 /ACE
parent280392c8b7831e1257f4c286a08a43685b9193ca (diff)
downloadATCD-fc83f54e9330f3c325460f1f01cb4a10ef570f6f.tar.gz
Fix ACE_FALLTHROUGH definition for old GCC compilers.
Diffstat (limited to 'ACE')
-rw-r--r--ACE/ace/config-g++-common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ACE/ace/config-g++-common.h b/ACE/ace/config-g++-common.h
index 2bcdde43e74..df9e3b41788 100644
--- a/ACE/ace/config-g++-common.h
+++ b/ACE/ace/config-g++-common.h
@@ -18,11 +18,19 @@
#if __cplusplus >= 201103L
# define ACE_HAS_CPP11
+#if __GNUC__ >= 7
# define ACE_FALLTHROUGH [[gnu::fallthrough]]
+#else
+# define ACE_FALLTHROUGH
+#endif
#endif
#if __cplusplus >= 201402L
# define ACE_HAS_CPP14
+#if __GNUC__ >= 7
# define ACE_FALLTHROUGH [[gnu::fallthrough]]
+#else
+# define ACE_FALLTHROUGH
+#endif
#endif
#if __cplusplus >= 201703L
# define ACE_HAS_CPP17