summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 4b70a678..1eee1c9e 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -2209,8 +2209,9 @@ int scriptToLoad = 0;
const char *scriptfile = "main.scm";
#ifdef _WIN32
-#include <Windows.h>
+extern "C" __declspec(dllimport) short __stdcall GetAsyncKeyState(int);
#endif
+
int open_script()
{
// glfwGetKey doesn't work because of CGame::Initialise is blocking