summaryrefslogtreecommitdiffhomepage
path: root/opentrack/shortcuts.h
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/shortcuts.h')
-rw-r--r--opentrack/shortcuts.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/opentrack/shortcuts.h b/opentrack/shortcuts.h
index e9935b01..2362c88b 100644
--- a/opentrack/shortcuts.h
+++ b/opentrack/shortcuts.h
@@ -26,10 +26,10 @@
# include "keybinding-worker.hpp"
#endif
-#ifdef __GNUC__
-# define unused(t, i) t __attribute__((unused)) i
+#if defined(__GNUC__) && !defined(_WIN32)
+# define unused_on_unix(t, i) t __attribute__((unused)) i
#else
-# define unused(t, i) t i
+# define unused_on_unix(t, i) t i
#endif
using namespace options;