Fixed building using MinGW

Our SDL_windows.h needed to be included before anything else so UNICODE is defined.
This commit is contained in:
Sam Lantinga
2013-10-17 23:02:29 -07:00
parent a2bd897064
commit 12ca3ce3fa
20 changed files with 62 additions and 38 deletions

2
test/configure vendored
View File

@@ -3452,7 +3452,7 @@ rm -f core conftest.err conftest.$ac_objext \
rm -f conf.sdltest
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS -lSDL2_test"
LIBS="$LIBS -lSDL2_test $SDL_LIBS"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'

View File

@@ -86,7 +86,7 @@ AM_PATH_SDL2($SDL_VERSION,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
)
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS -lSDL2_test"
LIBS="$LIBS -lSDL2_test $SDL_LIBS"
dnl Check for X11 path, needed for OpenGL on some systems
AC_PATH_X