diff --git a/sc2/src/libs/graphics/sdl/sdl_common.h b/sc2/src/libs/graphics/sdl/sdl_common.h index 80ac94bb5..dea339612 100644 --- a/sc2/src/libs/graphics/sdl/sdl_common.h +++ b/sc2/src/libs/graphics/sdl/sdl_common.h @@ -22,7 +22,6 @@ #include "port.h" #include SDL_INCLUDE(SDL.h) #include SDL_INCLUDE(SDL_byteorder.h) -#include SDL_IMAGE_INCLUDE(SDL_image.h) #include "../gfxintrn.h" #include "libs/graphics/tfb_draw.h" diff --git a/sc2/src/port.h b/sc2/src/port.h index 79ab0ac5e..51fc606eb 100644 --- a/sc2/src/port.h +++ b/sc2/src/port.h @@ -460,18 +460,14 @@ typedef unsigned int wint_t; # endif /* defined (__FreeBSD__) || defined (__OpenBSD__) */ #endif /* defined (PORT_WANT_ERRNO) */ -// Use SDL_INCLUDE and SDL_IMAGE_INCLUDE to portably include the SDL files -// from the right location. +// Use SDL_INCLUDE to portably include the SDL files from the right location. // TODO: Where the SDL and SDL_image headers are located could be detected // from the build script. #ifdef __APPLE__ - // SDL_image.h in a directory SDL_image under the include dir. # define SDL_DIR SDL -# define SDL_IMAGE_DIR SDL_image #else // SDL_image.h directly under the include dir. # undef SDL_DIR -# undef SDL_IMAGE_DIR #endif #ifdef SDL_DIR @@ -480,12 +476,6 @@ typedef unsigned int wint_t; # define SDL_INCLUDE(file) #endif /* SDL_DIR */ -#ifdef SDL_IMAGE_DIR -# define SDL_IMAGE_INCLUDE(file) -#else -# define SDL_IMAGE_INCLUDE(file) -#endif /* SDL_IMAGE_DIR */ - // Mark a function as using printf-style function arguments, so that // extra consistency checks can be made by the compiler. // The first argument to PRINTF_FUNCTION and VPRINTF_FUNCTION is the