summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-01-25 01:25:59 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2010-01-25 01:25:59 +0000
commitd9cd11ad44bfccf2be37b2473a675f009365e945 (patch)
treebab7bacb9da2c36a6226108ace949961c981d397 /configure
parent0b69d6254f7f554c80c9f3048a862dbe840a1805 (diff)
Only define _WIN32_WINNT=0x0501 if $target_os = "mingw32".
If compatibility with pre-XP versions is desired, use --target-os=mingw32-prexp Patch by Martin Storsjö <martin at martin dot st>. Originally committed as revision 21441 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure b/configure
index f0913bc5ed..b9d6a42d37 100755
--- a/configure
+++ b/configure
@@ -2075,8 +2075,11 @@ case $target_os in
{ check_cflags -mdynamic-no-pic && add_asflags -mdynamic-no-pic; }
;;
mingw32*)
- # Only WinXP or greater are supported
- add_cflags -D_WIN32_WINNT=0x0501
+ # Adding _WIN32_WINNT=0x0501 makes functions that require
+ # XP visible and thus may make it binary incompatible with
+ # earlier versions. Set --target-os=mingw32-prexp if this
+ # isn't desired.
+ test $target_os = "mingw32" && add_cflags -D_WIN32_WINNT=0x0501
if test $target_os = "mingw32ce"; then
disable network
else