From 7b5d98877622f2bea24c9dd745dfcf312df31a87 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 9 Jun 2021 14:49:57 -0400 Subject: util: Rename fallthrough to BFS_FALLTHROUGH This avoids shadowing the actually standard name fallthrough. --- util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util.h') 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 /** -- cgit v1.2.3