Merge branch 'v0.21.x'

This commit is contained in:
Max Kellermann
2020-01-03 15:31:18 +01:00
4 changed files with 50 additions and 3 deletions

View File

@@ -145,7 +145,7 @@
#if GCC_CHECK_VERSION(7,0)
#define gcc_fallthrough __attribute__((fallthrough))
#elif CLANG_CHECK_VERSION(10,0)
#elif CLANG_CHECK_VERSION(10,0) && defined(__cplusplus)
#define gcc_fallthrough [[fallthrough]]
#else
#define gcc_fallthrough