summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-09-04 08:36:34 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-09-04 08:37:11 +0100
commit233d14f4da86ee383815b870d547fcd2e39b8c53 (patch)
tree0ecb4cfdcd9257d7c952725ff12f43260e71e64d /compat.h
parent2e931d49940ed91e2d534e497c86838ebaae833d (diff)
Hide warnings due to Apple's stupidity with __dead, reported by Kurtis Rader.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index 5b23b178..4efad6ee 100644
--- a/compat.h
+++ b/compat.h
@@ -35,6 +35,10 @@
#define __attribute__(a)
#endif
+#ifdef BROKEN___DEAD
+#undef __dead
+#endif
+
#ifndef __unused
#define __unused __attribute__ ((__unused__))
#endif