forked from fmtlib/fmt
Relax fallthrough attribute detection
This commit is contained in:
@ -69,7 +69,8 @@
|
|||||||
# define FMT_HAS_BUILTIN(x) 0
|
# define FMT_HAS_BUILTIN(x) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if FMT_HAS_CPP_ATTRIBUTE(fallthrough) >= 201603 && __cplusplus >= 201703
|
#if FMT_HAS_CPP_ATTRIBUTE(fallthrough) && \
|
||||||
|
(__cplusplus >= 201703 || FMT_GCC_VERSION != 0)
|
||||||
# define FMT_FALLTHROUGH [[fallthrough]]
|
# define FMT_FALLTHROUGH [[fallthrough]]
|
||||||
#else
|
#else
|
||||||
# define FMT_FALLTHROUGH
|
# define FMT_FALLTHROUGH
|
||||||
|
Reference in New Issue
Block a user