osdep/compiler: clang also recognizes those attributes

This commit is contained in:
Kacper Michajłow committed 2024-05-06 22:01:17 +02:00
1 parent 041a925ada
commit 323ed3cb10
1 file changed
+1 -1
+1 -1
View File
@@ -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))