From 3851014634900484b9e56b3c64c7ebff022f9dae Mon Sep 17 00:00:00 2001 From: Gauvain 'GovanifY' Roussel-Tarbouriech Date: Wed, 12 May 2021 10:21:44 +0200 Subject: [PATCH] gs-merge: make sure x11 defines are scoped --- pcsx2/GS/GS.cpp | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/pcsx2/GS/GS.cpp b/pcsx2/GS/GS.cpp index b31ae756f3..ba5a3dd6b7 100644 --- a/pcsx2/GS/GS.cpp +++ b/pcsx2/GS/GS.cpp @@ -37,7 +37,6 @@ #include "Window/GSWndWGL.h" #include "Window/GSSettingsDlg.h" -#undef None static HRESULT s_hr = E_FAIL; @@ -54,10 +53,10 @@ extern bool RunLinuxDialog(); #endif -#define PS2E_LT_GS 0x01 -#define PS2E_GS_VERSION 0x0006 -#define PS2E_X86 0x01 // 32 bit -#define PS2E_X86_64 0x02 // 64 bit +// do NOT undefine this/put it above includes, as x11 people love to redefine +// things that make obscure compiler bugs, unless you want to run around and +// debug obscure compiler errors --govanify +#undef None static GSRenderer* s_gs = NULL; static void (*s_irq)() = NULL; @@ -67,19 +66,6 @@ static bool s_exclusive = true; static std::string s_renderer_name; bool gsopen_done = false; // crash guard for GSgetTitleInfo2 and GSKeyEvent (replace with lock?) -uint32 PS2EgetCpuPlatform() -{ -#ifdef _M_AMD64 - - return PS2E_X86_64; - -#else - - return PS2E_X86; - -#endif -} - void GSsetBaseMem(uint8* mem) { s_basemem = mem;