0
0
Fork 0
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:
Chris Ison 2001-10-21 21:20:59 +00:00
parent 6fd5239e52
commit 70619f195e
2 changed files with 19 additions and 1 deletions

View file

@ -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_

View file

@ -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