Skip to content

Commit

Permalink
Relax fallthrough attribute detection
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Dec 5, 2019
1 parent 071794e commit 1219b65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
# define FMT_HAS_BUILTIN(x) 0
#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]]
#else
# define FMT_FALLTHROUGH
Expand Down

0 comments on commit 1219b65

Please sign in to comment.