cygwin: disable effect of -ansi -std=c89 on system include
Yitzchak Scott-Thoennes [Mon, 5 Feb 2007 03:32:59 +0000 (19:32 -0800)]
From: "Yitzchak Scott-Thoennes" <sthoenna@efn.org>
Message-ID: <1344.63.226.247.186.1170675179.squirrel@63.226.247.186>

p4raw-id: //depot/perl@30129

hints/cygwin.sh

index 8fa9ec6..f88e7c5 100644 (file)
@@ -31,7 +31,7 @@ libswanted=`echo " $libswanted " | sed -e 's/ util / /g'`
 #   (with cygwin 1.5.7, cygipc is deprecated in favor of the builtin cygserver)
 libswanted="$libswanted gdbm_compat"
 test -z "$optimize" && optimize='-O2'
-ccflags="$ccflags -DPERL_USE_SAFE_PUTENV"
+ccflags="$ccflags -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__"
 # - otherwise i686-cygwin
 archname='cygwin'