fix macro redefinition warnings on win-glfw build

This commit is contained in:
withmorten 2021-07-08 01:44:55 +02:00
parent e6544a6983
commit 79c010f082
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,4 @@
#define WITHWINDOWS
#include "common.h"
#ifdef AUDIO_MSS

View file

@ -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