diff --git a/desktop_version/src/UtilityClass.h b/desktop_version/src/UtilityClass.h index c810591e..01e8cd3c 100644 --- a/desktop_version/src/UtilityClass.h +++ b/desktop_version/src/UtilityClass.h @@ -68,6 +68,16 @@ void _VVV_between( sizeof(middle) \ ) +#ifndef __has_attribute +# define __has_attribute(x) 0 +#endif + +#if __has_attribute(__fallthrough__) +# define VVV_fallthrough __attribute__((__fallthrough__)) +#else +# define VVV_fallthrough do { } while (false) /* fallthrough */ +#endif + //helperClass class UtilityClass