summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 08f2efe40..3ae1c74e6 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -163,12 +163,19 @@
#endif // ENABLE_CILKPLUS
#ifdef ADVGCC
+
#define const2 const
#if GCC_VERSION >= 60000
#define PRAGMA6(str) _Pragma(#str)
#else // GCC_VERSION > 60000
#define PRAGMA6(str)
#endif // GCC_VERSION > 60000
+#if GCC_VERSION >= 70000
+#define A_FALLTHROUGH __attribute__ ((fallthrough));
+#else // GCC_VERSION > 70000
+#define A_FALLTHROUGH
+#endif // GCC_VERSION > 70000
+
#else // ADVGCC
#define const2
#define PRAGMA6(str)