diff --git a/rpcs3/Emu/GS/GL/OpenGL.h b/rpcs3/Emu/GS/GL/OpenGL.h index fb8cbdfb16..42eb742f72 100644 --- a/rpcs3/Emu/GS/GL/OpenGL.h +++ b/rpcs3/Emu/GS/GL/OpenGL.h @@ -4,6 +4,8 @@ #endif #ifdef _WIN32 +#include "GL/gl.h" +#include "GL/glext.h" typedef BOOL (WINAPI* PFNWGLSWAPINTERVALEXTPROC) (int interval); #define OPENGL_PROC(p, n) extern p gl##n @@ -12,7 +14,7 @@ typedef BOOL (WINAPI* PFNWGLSWAPINTERVALEXTPROC) (int interval); #undef OPENGL_PROC #undef OPENGL_PROC2 -#elif __APPLE__ +#elif defined(__APPLE__) #include #include diff --git a/rpcs3/rpcs3.cpp b/rpcs3/rpcs3.cpp index 28bed7caf8..ca418dc199 100644 --- a/rpcs3/rpcs3.cpp +++ b/rpcs3/rpcs3.cpp @@ -72,11 +72,9 @@ void Rpcs3App::SendDbgCommand(DbgCommand id, CPUThread* thr) Rpcs3App::Rpcs3App() { - #ifdef __UNIX__ - #ifndef __APPLE__ + #if defined(__UNIX__) && !defined(__APPLE__) XInitThreads(); #endif - #endif } /* CPUThread& GetCPU(const u8 core)