util: Fixes -Wundef in util/compiler.h
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19926>
This commit is contained in:
+2
-1
@@ -87,7 +87,8 @@
|
||||
# define HAS_CLANG_FALLTHROUGH 0
|
||||
#endif
|
||||
|
||||
#if __cplusplus >= 201703L || __STDC_VERSION__ > 201710L
|
||||
#if (defined(__cplusplus) && (__cplusplus >= 201703L)) || \
|
||||
(defined(__STDC_VERSION__) && (__STDC_VERSION__ > 201710L))
|
||||
/* Standard C++17/C23 attribute */
|
||||
#define FALLTHROUGH [[fallthrough]]
|
||||
#elif HAS_CLANG_FALLTHROUGH
|
||||
|
||||
Reference in New Issue
Block a user