summaryrefslogtreecommitdiff
path: root/src/inputmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-13 22:06:07 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-14 02:10:13 +0300
commitb15ab01a35ce3682e26aafb5fb1ac0fb98045241 (patch)
tree344b23d0c5721d1d5c86732c8abf581c3de1a5f1 /src/inputmanager.h
parentaa629a5b28d83333d083cac24ee9ac815c2ea6e7 (diff)
downloadmv-b15ab01a35ce3682e26aafb5fb1ac0fb98045241.tar.gz
mv-b15ab01a35ce3682e26aafb5fb1ac0fb98045241.tar.bz2
mv-b15ab01a35ce3682e26aafb5fb1ac0fb98045241.tar.xz
mv-b15ab01a35ce3682e26aafb5fb1ac0fb98045241.zip
Add support for mingw64 for windows builds.
Diffstat (limited to 'src/inputmanager.h')
-rw-r--r--src/inputmanager.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/inputmanager.h b/src/inputmanager.h
index de5003a3b..4bcc85e84 100644
--- a/src/inputmanager.h
+++ b/src/inputmanager.h
@@ -31,6 +31,14 @@
#define KeyFunctionSize 3
+// hack to avoid conflicts with windows headers.
+#ifdef INPUT_KEYBOARD
+#undef INPUT_KEYBOARD
+#endif
+#ifdef INPUT_MOUSE
+#undef INPUT_MOUSE
+#endif
+
struct KeyData;
class Setup_Input;