]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Regression fix: revert rev.12815 MinGW C++11 support
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 3 Sep 2013 00:16:54 +0000 (12:16 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 3 Sep 2013 00:16:54 +0000 (12:16 +1200)
MinGW supports c++11 but in ANSI-strict way. Squid code still contains
non-standard strcasecmp strncasecmp and possibly other functions.

  This is a iCelero Project.

configure.ac

index 3379cadd1c31a0a3e532d14735b3485f25a9d507..2f206d0cf743c0d5ad29ce7dcae9c24999a33706 100644 (file)
@@ -71,7 +71,8 @@ fi
 
 # Check for C++0x compiler support
 AX_CXX_COMPILE_STDCXX_0X
-if test "x$ax_cv_cxx_compile_cxx0x_cxx" = "xyes" ; then
+if test "x$ax_cv_cxx_compile_cxx0x_cxx" = "xyes" -a \
+  "x$squid_host_os" != "xmingw" ; then
     #BUG 3613: when clang -std=c++0x is used, it activates a "strict mode"
     # in the system libraries, which makes some c99 methods unavailable
     # (e.g. strtoll), yet configure detects them as avilable.