diff options
Diffstat (limited to 'gprofng/common/gp-defs.h')
-rw-r--r-- | gprofng/common/gp-defs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gprofng/common/gp-defs.h b/gprofng/common/gp-defs.h index 440bfb1..e92c33e 100644 --- a/gprofng/common/gp-defs.h +++ b/gprofng/common/gp-defs.h @@ -55,4 +55,12 @@ #define WSIZE_32 1 #endif +#ifndef ATTRIBUTE_FALLTHROUGH +# if (GCC_VERSION >= 7000) +# define ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__)) +# else +# define ATTRIBUTE_FALLTHROUGH /* Fall through */ +# endif +#endif + #endif |