]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Regression fix: revert rev.12815 MinGW C++11 support
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 9 Sep 2013 01:46:31 +0000 (19:46 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 9 Sep 2013 01:46:31 +0000 (19:46 -0600)
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 4d0bb51808e3ca32e94c8d84ea9878e1aed180c2..b4c988ac2ca4a42b6a6b62913ee589ed1aacfb1d 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.