summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-06-09 14:49:57 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-06-09 14:55:45 -0400
commit7b5d98877622f2bea24c9dd745dfcf312df31a87 (patch)
treebbb03b5e7663bf0c24aaf8cfc95741d9bf98cb0c /util.h
parent41c148c4bf835fca788e6990cb8ea8651bb55927 (diff)
downloadbfs-7b5d98877622f2bea24c9dd745dfcf312df31a87.tar.xz
util: Rename fallthrough to BFS_FALLTHROUGH
This avoids shadowing the actually standard name fallthrough.
Diffstat (limited to 'util.h')
-rw-r--r--util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.h b/util.h
index 07580fc..4542a46 100644
--- a/util.h
+++ b/util.h
@@ -99,11 +99,11 @@
#endif
#if BFS_HAS_C_ATTRIBUTE(fallthrough)
-# define fallthrough [[fallthrough]]
+# define BFS_FALLTHROUGH [[fallthrough]]
#elif BFS_HAS_GNU_ATTRIBUTE(fallthrough)
-# define fallthrough __attribute__((fallthrough))
+# define BFS_FALLTHROUGH __attribute__((fallthrough))
#else
-# define fallthrough ((void)0)
+# define BFS_FALLTHROUGH ((void)0)
#endif
/**