[FFmpeg-cvslog] build: set -U__STRICT_ANSI__ for newlib

Mans Rullgard git at videolan.org
Mon Nov 19 14:21:08 CET 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Fri Nov 16 21:02:15 2012 +0000| [8f7b814f547d484a59702badc4545327439841ea] | committer: Mans Rullgard

build: set -U__STRICT_ANSI__ for newlib

This is (erroneously) required to enable various things in the
newlib headers.  As cygwin uses newlib, it is covered by this.

Signed-off-by: Mans Rullgard <mans at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8f7b814f547d484a59702badc4545327439841ea
---

 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index e6d4ecb..f577f7c 100755
--- a/configure
+++ b/configure
@@ -2832,7 +2832,6 @@ case $target_os in
         SHFLAGS='-shared -Wl,--out-implib,$(SUBDIR)lib$(FULLNAME).dll.a'
         objformat="win32"
         enable dos_paths
-        add_cppflags -U__STRICT_ANSI__
         ;;
     *-dos|freedos|opendos)
         network_extralibs="-lsocket"
@@ -2933,6 +2932,7 @@ elif check_header _mingw.h; then
         die "ERROR: MinGW runtime version must be >= 3.15."
 elif check_cpp_condition newlib.h "defined _NEWLIB_VERSION"; then
     libc_type=newlib
+    add_cppflags -U__STRICT_ANSI__
 elif check_func_headers stdlib.h _get_doserrno; then
     libc_type=msvcrt
     add_compat strtod.o strtod=avpriv_strtod



More information about the ffmpeg-cvslog mailing list