diff --git a/spirv_reflect.c b/spirv_reflect.c index 285a861..92f8b33 100644 --- a/spirv_reflect.c +++ b/spirv_reflect.c @@ -28,7 +28,7 @@ #include #endif -#if defined(__clang__) || defined(__GNUC__) || defined(__APPLE_CC__) +#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 7) || defined(__APPLE_CC__) #define FALLTHROUGH __attribute__((fallthrough)) #else #define FALLTHROUGH