Skip to content

Commit

Permalink
fallthrough attribute was introduced only in GCC 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vcoda committed Apr 4, 2024
1 parent c7be9dc commit fe042db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spirv_reflect.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <stdlib.h>
#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
Expand Down

0 comments on commit fe042db

Please sign in to comment.