From 864a4db26bfa7ec05de936e9446d29bf8e58fc58 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Wed, 9 Sep 2015 02:34:18 +0200 Subject: [PATCH] On cygwin, use -std=gnu++11 instead of -std=c++11 This allows compiling without monkeying with compiler guards. --- config/lyxinclude.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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