Enhance config script to allow selecting SDL1 or 2 backends

This commit is contained in:
Michael Martin
2019-08-16 00:51:23 -07:00
parent ce92261641
commit b724f372dd
3 changed files with 39 additions and 17 deletions
+1 -9
View File
@@ -461,16 +461,8 @@ typedef unsigned int wint_t;
#endif /* defined (PORT_WANT_ERRNO) */
// 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.
// The SDL_DIR definition is provided by the build configuration.
#ifdef __APPLE__
# define SDL_DIR SDL
#else
// SDL_image.h directly under the include dir.
# undef SDL_DIR
#endif
#ifdef SDL_DIR
# define SDL_INCLUDE(file) <SDL_DIR/file>
#else
# define SDL_INCLUDE(file) <file>