mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 05:39:01 +00:00
fix macro redefinition warnings on win-glfw build
This commit is contained in:
parent
dadc56ccf9
commit
f9a2f1daf7
2 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
#define WITHWINDOWS
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#ifdef AUDIO_MSS
|
#ifdef AUDIO_MSS
|
||||||
|
|
|
@ -1770,8 +1770,9 @@ void CRunningScript::Init()
|
||||||
int scriptToLoad = 0;
|
int scriptToLoad = 0;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <Windows.h>
|
extern "C" __declspec(dllimport) short __stdcall GetAsyncKeyState(int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int open_script()
|
int open_script()
|
||||||
{
|
{
|
||||||
// glfwGetKey doesn't work because of CGame::Initialise is blocking
|
// glfwGetKey doesn't work because of CGame::Initialise is blocking
|
||||||
|
|
Loading…
Reference in a new issue