summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-07-08 01:44:55 +0200
committerwithmorten <morten.with@gmail.com>2021-07-08 01:44:55 +0200
commit79c010f08275a7152e920bd0a9e3dbf6493f5b4c (patch)
treef420ed830170fb62c781d7d54af69438c2d320a7 /src
parentfix sampman_null build (diff)
downloadre3-79c010f08275a7152e920bd0a9e3dbf6493f5b4c.tar
re3-79c010f08275a7152e920bd0a9e3dbf6493f5b4c.tar.gz
re3-79c010f08275a7152e920bd0a9e3dbf6493f5b4c.tar.bz2
re3-79c010f08275a7152e920bd0a9e3dbf6493f5b4c.tar.lz
re3-79c010f08275a7152e920bd0a9e3dbf6493f5b4c.tar.xz
re3-79c010f08275a7152e920bd0a9e3dbf6493f5b4c.tar.zst
re3-79c010f08275a7152e920bd0a9e3dbf6493f5b4c.zip
Diffstat (limited to 'src')
-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