Different version of SDL_INCLUDE.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1690 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+10
-14
@@ -147,25 +147,21 @@ iswgraph(wint_t wc)
|
|||||||
# define SDL_IMAGE_DIR SDL_image
|
# define SDL_IMAGE_DIR SDL_image
|
||||||
#else
|
#else
|
||||||
// SDL_image.h directly under the include dir.
|
// SDL_image.h directly under the include dir.
|
||||||
# define SDL_DIR
|
# undef SDL_DIR
|
||||||
# define SDL_IMAGE_DIR
|
# undef SDL_IMAGE_DIR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define xSDL_DIR x##SDL_DIR
|
#ifdef SDL_DIR
|
||||||
#if xSDL_DIR == x
|
|
||||||
# define SDL_INCLUDE(file) <file>
|
|
||||||
#else
|
|
||||||
# define SDL_INCLUDE(file) <SDL_DIR/file>
|
# define SDL_INCLUDE(file) <SDL_DIR/file>
|
||||||
#endif
|
|
||||||
#undef xSDL_DIR
|
|
||||||
|
|
||||||
#define xSDL_IMAGE_DIR x##SDL_IMAGE_DIR
|
|
||||||
#if xSDL_IMAGE_DIR == x
|
|
||||||
# define SDL_IMAGE_INCLUDE(file) <file>
|
|
||||||
#else
|
#else
|
||||||
|
# define SDL_INCLUDE(file) <file>
|
||||||
|
#endif /* SDL_DIR */
|
||||||
|
|
||||||
|
#ifdef SDL_IMAGE_DIR
|
||||||
# define SDL_IMAGE_INCLUDE(file) <SDL_IMAGE_DIR/file>
|
# define SDL_IMAGE_INCLUDE(file) <SDL_IMAGE_DIR/file>
|
||||||
#endif
|
#else
|
||||||
#undef xSDL_IMAGE_DIR
|
# define SDL_IMAGE_INCLUDE(file) <file>
|
||||||
|
#endif /* SDL_IMAGE_DIR */
|
||||||
|
|
||||||
#endif /* _PORT_H */
|
#endif /* _PORT_H */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user