cmake: s/_LINUX/__linux__/

This commit is contained in:
Gregory Hainaut committed 2014-12-20 10:54:24 +01:00
1 parent 532cc7755c
commit 4773bcf0ea
11 files changed
+16 -17

No files matched your search

+5 -5
View File
@@ -319,7 +319,7 @@ static int _GSopen(void** dsp, char* title, int renderer, int threads = -1)
int w = theApp.GetConfig("ModeWidth", 0);
int h = theApp.GetConfig("ModeHeight", 0);
#ifdef _LINUX
#ifdef __linux__
for(uint32 i = 0; i < 2; i++) {
try
{
@@ -362,7 +362,7 @@ static int _GSopen(void** dsp, char* title, int renderer, int threads = -1)
{
s_gs->SetMultithreaded(true);
#ifdef _LINUX
#ifdef __linux__
if (s_gs->m_wnd) {
// A window was already attached to s_gs so we also
// need to restore the window state (Attach)
@@ -415,7 +415,7 @@ static int _GSopen(void** dsp, char* title, int renderer, int threads = -1)
EXPORT_C_(int) GSopen2(void** dsp, uint32 flags)
{
#ifdef _LINUX
#ifdef __linux__
// Use ogl renderer as default otherwise it crash at startup
// GSRenderOGL only GSDeviceOGL (not GSDeviceNULL)
int renderer = theApp.GetConfig("renderer", 12);
@@ -440,7 +440,7 @@ EXPORT_C_(int) GSopen2(void** dsp, uint32 flags)
}
#endif
#ifdef _LINUX
#ifdef __linux__
switch(renderer) {
case 13: renderer = 12; break; // OGL: SW to HW
case 12: renderer = 13; break; // OGL: HW to SW
@@ -1419,7 +1419,7 @@ EXPORT_C GSBenchmark(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow
#endif
#ifdef _LINUX
#ifdef __linux__
#include <sys/time.h>
#include <sys/timeb.h> // ftime(), struct timeb