From aa5f4313d7293a77162c5819d9e8bd5e37206add Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Thu, 6 Sep 2012 14:40:02 +0200 Subject: [PATCH] CLucene: Fix compilation with win32-g++ and C++11 We plan to enable -std=c++0x for MinGW gcc. However, this let gcc set __STRICT_ANSI__, and the MinGW headers then do not declare e.g. _i64tow. Instead of working around this in clucene we just switch to less strict -std=gnu++0x mode. Change-Id: I734908048a8ab93f7b68a7be6b8a6cb8edae7b43 Reviewed-by: Thiago Macieira --- src/assistant/clucene/clucene.pro | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/assistant/clucene/clucene.pro b/src/assistant/clucene/clucene.pro index 725d1b8..a50fb43 100644 --- a/src/assistant/clucene/clucene.pro +++ b/src/assistant/clucene/clucene.pro @@ -31,6 +31,9 @@ CONFIG(exceptions_off) { } } +# otherwise mingw headers do not declare common functions like _i64tow +win32-g++*:QMAKE_CXXFLAGS_CXX11 = -std=gnu++0x + win32-msvc.net | win32-msvc2* { QMAKE_CFLAGS_RELEASE -= -O2 QMAKE_CXXFLAGS_RELEASE -= -O2 -- 2.7.4