summaryrefslogtreecommitdiffstats
path: root/osdep/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/compiler.h')
-rw-r--r--osdep/compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/compiler.h b/osdep/compiler.h
index f5658979e3..a4d7bf3753 100644
--- a/osdep/compiler.h
+++ b/osdep/compiler.h
@@ -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))