mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
osdep/compiler: clang also recognizes those attributes
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#define MP_EXPAND_ARGS(...) __VA_ARGS__
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format(printf, a1, a2)))
|
||||
#define MP_NORETURN __attribute__((noreturn))
|
||||
#define MP_FALLTHROUGH __attribute__((fallthrough))
|
||||
|
||||
Reference in New Issue
Block a user