mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Try fixing a warning with MA_FALLTHROUGH.
This commit is contained in:
+4
-3
@@ -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
|
||||||
|
#if !defined(MA_FALLTHROUGH) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L
|
||||||
|
#define MA_FALLTHROUGH [[fallthrough]]
|
||||||
#endif
|
#endif
|
||||||
#if !defined(MA_FALLTHROUGH) && defined(__has_attribute) && (defined(__clang__) || defined(__GNUC__))
|
#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
|
||||||
|
|||||||
Reference in New Issue
Block a user