aboutsummaryrefslogtreecommitdiff
path: root/data/glr.c
diff options
context:
space:
mode:
Diffstat (limited to 'data/glr.c')
-rw-r--r--data/glr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/glr.c b/data/glr.c
index 08d4a3e6..8cd6baf5 100644
--- a/data/glr.c
+++ b/data/glr.c
@@ -635,8 +635,8 @@ yytnamerr (char *yyres, const char *yystr)
if (*++yyp != '\\')
goto do_not_strip_quotes;
/* Fall through. */
-#if defined(__has_cpp_attribute) && __has_cpp_attribute(clang::fallthrough)
- [[clang::fallthrough]];
+#ifdef __cplusplus
+ [[fallthrough]];
#endif
default:
if (yyres)