diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index 67a110b989..057caf491c 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -362,7 +362,8 @@ if test x$GXX = xyes; then dnl the deprecated-register warning is very annoying with Qt4.x right now. AM_CXXFLAGS="$AM_CXXFLAGS -std=c++11 -Wno-deprecated-register";; *) - AM_CXXFLAGS="$AM_CXXFLAGS -std=c++11";; + AM_CXXFLAGS="$AM_CXXFLAGS -std=c++11" + AS_CASE([$host], [*cygwin*], [AM_CXXFLAGS="$AM_CXXFLAGS -U__STRICT_ANSI__"]);; esac fi