Skip to content

Commit

Permalink
Compatibility with GCC < 7
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinND committed Jan 31, 2019
1 parent 635345c commit 43816c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyformat.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ namespace tfm = tinyformat;

#if defined(__clang__)
# define TINYFORMAT_FALLTHROUGH [[clang::fallthrough]];
#elif defined(__GNUG__)
#elif defined(__GNUG__) && __GNUC__ >= 7
# define TINYFORMAT_FALLTHROUGH __attribute__ ((fallthrough));
#else
# define TINYFORMAT_FALLTHROUGH
Expand Down

0 comments on commit 43816c6

Please sign in to comment.