summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/audio/sampman_miles.cpp1
-rw-r--r--src/control/Script.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/audio/sampman_miles.cpp b/src/audio/sampman_miles.cpp
index e8c28dc4..49f2f10f 100644
--- a/src/audio/sampman_miles.cpp
+++ b/src/audio/sampman_miles.cpp
@@ -1,3 +1,4 @@
+#define WITHWINDOWS
#include "common.h"
#ifdef AUDIO_MSS
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