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_PROTOS
#if defined (WIN32) && !defined(_WIN32)
# define _WIN32
#endif
#if defined (_WIN32) && !defined(WIN32)
# define WIN32
#endif
@BOTTOM@
#endif // __config_h_

View file

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