Fix SDL detection.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1671 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2005-04-23 23:23:16 +00:00
parent a9080b7a49
commit cad8f6f54d
17 changed files with 104 additions and 47 deletions
+14
View File
@@ -137,6 +137,20 @@ iswgraph(wint_t wc)
}
#endif
// Use SDL_INCLUDE to portably include the SDL files from the right
// location. TODO: Where SDL_H is located could be detected from the build
// script.
#ifdef APPLE
# define HAVE_SDL_SDL_H
#else
# define HAVE_SDL_H
#endif
#ifdef HAVE_SDL_H
# define SDL_INCLUDE(file) <file>
#elif defined(HAVE_SDL_SDL_H)
# define SDL_INCLUDE(file) <SDL/file>
#endif
#endif /* _PORT_H */