X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FCppAttributes.h;h=2ebbae8cff35a164d3f778da3db64da12c91ead9;hb=d389a33028d1a8a8520bc5c85dbcf767131fd51c;hp=466aab91a81144527e968415207f666674d52d46;hpb=ad3fe1dd9d62659880c7d563cde21bde7e3e2326;p=folly.git diff --git a/folly/CppAttributes.h b/folly/CppAttributes.h index 466aab91..2ebbae8c 100644 --- a/folly/CppAttributes.h +++ b/folly/CppAttributes.h @@ -53,8 +53,12 @@ * FOLLY_FALLTHROUGH; // no warning: annotated fall-through * } */ -#if FOLLY_HAS_CPP_ATTRIBUTE(clang::fallthrough) +#if FOLLY_HAS_CPP_ATTRIBUTE(fallthrough) +#define FOLLY_FALLTHROUGH [[fallthrough]] +#elif FOLLY_HAS_CPP_ATTRIBUTE(clang::fallthrough) #define FOLLY_FALLTHROUGH [[clang::fallthrough]] +#elif FOLLY_HAS_CPP_ATTRIBUTE(gnu::fallthrough) +#define FOLLY_FALLTHROUGH [[gnu::fallthrough]] #else #define FOLLY_FALLTHROUGH #endif