Trying to fix SDL definition conflict.
This commit is contained in:
@@ -11,6 +11,11 @@
|
|||||||
//
|
//
|
||||||
#include "sdlplayer.h"
|
#include "sdlplayer.h"
|
||||||
|
|
||||||
|
#if (defined _WIN32) || (defined __APPLE__)
|
||||||
|
#include <SDL.h>
|
||||||
|
#else
|
||||||
|
#include <SDL/SDL.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|||||||
@@ -17,13 +17,9 @@
|
|||||||
#include "configfile.h"
|
#include "configfile.h"
|
||||||
#include "qthelper.h"
|
#include "qthelper.h"
|
||||||
|
|
||||||
// Include SDL here and not in headers to prevent
|
|
||||||
// conflicts with QT includes.
|
|
||||||
#if (defined _WIN32) || (defined __APPLE__)
|
#if (defined _WIN32) || (defined __APPLE__)
|
||||||
#include <SDL.h>
|
|
||||||
#include <SDL_mixer.h>
|
#include <SDL_mixer.h>
|
||||||
#else
|
#else
|
||||||
#include <SDL/SDL.h>
|
|
||||||
#include <SDL/SDL_mixer.h>
|
#include <SDL/SDL_mixer.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user