diff options
-rw-r--r-- | src/commonlib/bsd/include/commonlib/bsd/compiler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commonlib/bsd/include/commonlib/bsd/compiler.h b/src/commonlib/bsd/include/commonlib/bsd/compiler.h index 4dd09bc90c..ebf017900d 100644 --- a/src/commonlib/bsd/include/commonlib/bsd/compiler.h +++ b/src/commonlib/bsd/include/commonlib/bsd/compiler.h @@ -35,6 +35,10 @@ #define __always_inline inline __attribute__((always_inline)) #endif +#ifndef __fallthrough +#define __fallthrough __attribute__((__fallthrough__)) +#endif + /* This evaluates to the type of the first expression, unless that is constant in which case it evaluates to the type of the second. This is useful when assigning macro parameters to temporary variables, because that would |