diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index 057caf491c..3a0a6f34c7 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -362,8 +362,9 @@ 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" - AS_CASE([$host], [*cygwin*], [AM_CXXFLAGS="$AM_CXXFLAGS -U__STRICT_ANSI__"]);; + AS_CASE([$host], [*cygwin*], + [AM_CXXFLAGS="$AM_CXXFLAGS -std=gnu++11"], + [AM_CXXFLAGS="$AM_CXXFLAGS -std=c++11"]);; esac fi