Try fixing a warning with MA_FALLTHROUGH.

This commit is contained in:
David Reid
2025-08-23 08:33:53 +10:00
parent 1d7d8dfba0
commit ea59076ba9
+6 -5
View File
@@ -3953,12 +3953,13 @@ typedef ma_uint16 wchar_t;
#endif #endif
#endif #endif
#if defined(__has_c_attribute) #if !defined(MA_FALLTHROUGH) && defined(__cplusplus) && __cplusplus >= 201703L
#if __has_c_attribute(fallthrough) #define MA_FALLTHROUGH [[fallthrough]]
#define MA_FALLTHROUGH [[fallthrough]]
#endif
#endif #endif
#if !defined(MA_FALLTHROUGH) && defined(__has_attribute) && (defined(__clang__) || defined(__GNUC__)) #if !defined(MA_FALLTHROUGH) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L
#define MA_FALLTHROUGH [[fallthrough]]
#endif
#if !defined(MA_FALLTHROUGH) && defined(__has_attribute)
#if __has_attribute(fallthrough) #if __has_attribute(fallthrough)
#define MA_FALLTHROUGH __attribute__((fallthrough)) #define MA_FALLTHROUGH __attribute__((fallthrough))
#endif #endif