about summary refs log tree commit diff
path: root/Src/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'Src/system.h')
-rw-r--r--Src/system.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/system.h b/Src/system.h
index f03d890c4..1c1de8da3 100644
--- a/Src/system.h
+++ b/Src/system.h
@@ -680,3 +680,10 @@ extern short ospeed;
 #else
 # define IS_DIRSEP(c) ((c) == '/')
 #endif
+
+#if defined(__GNUC__) && !defined(APPLE)
+/* Does the OS X port of gcc still gag on __attribute__? */
+#define UNUSED(x) x __attribute__((__unused__))
+#else
+#define UNUSED(x) x
+#endif