diff options
author | Thierry Crozat | 2016-09-03 23:06:42 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-09-03 23:07:21 +0100 |
commit | a2a985368cf202bfd8ed16d0defa4c9e4ea2d328 (patch) | |
tree | 87ff2fa2c16681d34ca18f88691c363f5f0dfcc5 /backends | |
parent | 8e6cc9f777742b8c84d4a8e7a45b132115b146ee (diff) | |
download | scummvm-rg350-a2a985368cf202bfd8ed16d0defa4c9e4ea2d328.tar.gz scummvm-rg350-a2a985368cf202bfd8ed16d0defa4c9e4ea2d328.tar.bz2 scummvm-rg350-a2a985368cf202bfd8ed16d0defa4c9e4ea2d328.zip |
BUILD: Tie the SDL_net version to the SDL version
This means that when using SDL 1.2 we use SDL_net 1.2, but when
using SDL 2 we now use SLD_net 2 as well. Both versions work
properly and there is not code change needed in ScummVM.
This change is because SDL_net depends on SDL, and using
SDL_net 1.2 with SDL 2 means we can end up needing to link with
both the SDL and SDL2 libraries.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/networking/sdl_net/client.cpp | 2 | ||||
-rw-r--r-- | backends/networking/sdl_net/localwebserver.cpp | 2 | ||||
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/backends/networking/sdl_net/client.cpp b/backends/networking/sdl_net/client.cpp index 7872e56ae7..fbb5fadf35 100644 --- a/backends/networking/sdl_net/client.cpp +++ b/backends/networking/sdl_net/client.cpp @@ -25,7 +25,7 @@ #include "backends/networking/sdl_net/client.h" #include "backends/networking/sdl_net/localwebserver.h" #include "common/memstream.h" -#include <SDL/SDL_net.h> +#include <SDL_net.h> namespace Networking { diff --git a/backends/networking/sdl_net/localwebserver.cpp b/backends/networking/sdl_net/localwebserver.cpp index e85060e9fb..fdc89b51e4 100644 --- a/backends/networking/sdl_net/localwebserver.cpp +++ b/backends/networking/sdl_net/localwebserver.cpp @@ -29,7 +29,7 @@ #include "common/system.h" #include "common/timer.h" #include "common/translation.h" -#include <SDL/SDL_net.h> +#include <SDL_net.h> #include <common/config-manager.h> #ifdef POSIX diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 6862bb349f..18f2a49bdd 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -61,12 +61,11 @@ #endif #ifdef USE_SDL_NET -#include <SDL/SDL_net.h> +#include <SDL_net.h> #endif #if SDL_VERSION_ATLEAST(2, 0, 0) -#include <SDL2/SDL.h> -#include <SDL2/SDL_clipboard.h> +#include <SDL_clipboard.h> #endif OSystem_SDL::OSystem_SDL() |