mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-19 10:20:45 +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_LIST
|
||||||
#undef SND_RENDER_PROTOS
|
#undef SND_RENDER_PROTOS
|
||||||
|
|
||||||
|
#if defined (WIN32) && !defined(_WIN32)
|
||||||
|
# define _WIN32
|
||||||
|
#endif
|
||||||
|
#if defined (_WIN32) && !defined(WIN32)
|
||||||
|
# define WIN32
|
||||||
|
#endif
|
||||||
|
|
||||||
@BOTTOM@
|
@BOTTOM@
|
||||||
#endif // __config_h_
|
#endif // __config_h_
|
||||||
|
|
13
configure.ac
13
configure.ac
|
@ -55,7 +55,7 @@ case "$host_os" in
|
||||||
if test "$host" != "$build"; then
|
if test "$host" != "$build"; then
|
||||||
case "$build_os" in
|
case "$build_os" in
|
||||||
cygwin*)
|
cygwin*)
|
||||||
CFLAGS="$CFLAGS -mno-cygwin"
|
CFLAGS="$CFLAGS -mno-cygwin -mconsole"
|
||||||
CPPFLAGS="$CPPFLAGS $CFLAGS"
|
CPPFLAGS="$CPPFLAGS $CFLAGS"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -563,6 +563,17 @@ if test "x$enable_sdl" != xno; then
|
||||||
HAVE_SDL=yes,
|
HAVE_SDL=yes,
|
||||||
HAVE_SDL=no)
|
HAVE_SDL=no)
|
||||||
AC_SUBST(HAVE_SDL)
|
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
|
fi
|
||||||
|
|
||||||
dnl XMMS Checks
|
dnl XMMS Checks
|
||||||
|
|
Loading…
Reference in a new issue