windows support: set -mwin32 when building on Cygwin

This makes cygwin define _WIN32 / WIN32, which it doesn't otherwise
define.
This commit is contained in:
Kovensky 2012-09-30 12:47:54 +00:00 committed by wm4
parent bc63957551
commit 077b41971b
1 changed files with 4 additions and 0 deletions

4
configure vendored
View File

@ -951,6 +951,10 @@ if mingw32 ; then
extra_cflags="$extra_cflags -DBYTE_ORDER=1234 -DLITTLE_ENDIAN=1234 -DBIG_ENDIAN=4321"
fi
if cygwin ; then
extra_cflags="$extra_cflags -mwin32"
fi
TMPC="$mplayer_tmpdir/tmp.c"
TMPCPP="$mplayer_tmpdir/tmp.cpp"
TMPEXE="$mplayer_tmpdir/tmp$_exesuf"