spu2x: linux compilation fix

This commit is contained in:
Gregory Hainaut 2016-01-09 14:26:57 +01:00
parent fbffa507b8
commit 3f17898bf5
2 changed files with 10 additions and 2 deletions

View File

@ -14,7 +14,15 @@ endif()
# plugin name # plugin name
set(Output spu2x-2.0.0) set(Output spu2x-2.0.0)
set(spu2xFinalFlags "") if (Linux)
if (SDL2_API)
set(spu2xFinalFlags "-DSPU2X_SDL2")
else()
set(spu2xFinalFlags "-DSPU2X_SDL")
endif()
else()
set(spu2xFinalFlags "")
endif()
# spu2x sources # spu2x sources
set(spu2xSources set(spu2xSources

View File

@ -20,7 +20,7 @@
#include "Dma.h" #include "Dma.h"
#include "Dialogs.h" #include "Dialogs.h"
#ifdef __POSIX__ #ifdef __APPLE__
#include "PS2Eext.h" #include "PS2Eext.h"
#endif #endif