aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-05-15 14:32:15 +0200
committerDiego Biurrun <diego@biurrun.de>2011-05-23 22:51:14 +0200
commita7a187a1beb8551101b592bf85f0f31a0db22f61 (patch)
tree64a965fd88d23720b76876d58c99c8aeebfd756f
parentcef7d70181ec7ee9df426ef0f3a08dd4995a4d9a (diff)
downloadffmpeg-a7a187a1beb8551101b592bf85f0f31a0db22f61.tar.gz
configure: Add -U__STRICT_ANSI__ to CPPFLAGS on Cygwin and DOS.
In -std=c99 mode GCC defines __STRICT_ANSI__ to hide non-ANSI interfaces. This causes declarations for some POSIX functions to be omitted from system headers, which causes compilation failures.
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index b63330cbff..5e3d6fbe47 100755
--- a/configure
+++ b/configure
@@ -2458,11 +2458,13 @@ case $target_os in
objformat="win32"
enable dos_paths
check_cflags -fno-common
+ add_cppflags -U__STRICT_ANSI__
;;
*-dos|freedos|opendos)
network_extralibs="-lsocket"
objformat="coff"
enable dos_paths
+ add_cppflags -U__STRICT_ANSI__
;;
linux)
add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600