mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
added compile switch to cygwin-mingw32 and added win32 defs
This commit is contained in:
parent
6fd5239e52
commit
70619f195e
2 changed files with 19 additions and 1 deletions
|
@ -145,5 +145,12 @@
|
|||
#undef SND_RENDER_LIST
|
||||
#undef SND_RENDER_PROTOS
|
||||
|
||||
#if defined (WIN32) && !defined(_WIN32)
|
||||
# define _WIN32
|
||||
#endif
|
||||
#if defined (_WIN32) && !defined(WIN32)
|
||||
# define WIN32
|
||||
#endif
|
||||
|
||||
@BOTTOM@
|
||||
#endif // __config_h_
|
||||
|
|
13
configure.ac
13
configure.ac
|
@ -55,7 +55,7 @@ case "$host_os" in
|
|||
if test "$host" != "$build"; then
|
||||
case "$build_os" in
|
||||
cygwin*)
|
||||
CFLAGS="$CFLAGS -mno-cygwin"
|
||||
CFLAGS="$CFLAGS -mno-cygwin -mconsole"
|
||||
CPPFLAGS="$CPPFLAGS $CFLAGS"
|
||||
;;
|
||||
*)
|
||||
|
@ -563,6 +563,17 @@ if test "x$enable_sdl" != xno; then
|
|||
HAVE_SDL=yes,
|
||||
HAVE_SDL=no)
|
||||
AC_SUBST(HAVE_SDL)
|
||||
if test "x$HAVE_SDL" = "xyes"; then
|
||||
case "$host_os" in
|
||||
mingw*)
|
||||
case "$build_os" in
|
||||
cygwin*)
|
||||
SDL_LIBS=`echo $SDL_LIBS | sed -e 's/-mwindows//'`
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl XMMS Checks
|
||||
|
|
Loading…
Reference in a new issue