X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/9b07ee2426ee91d65d4da7a16a85a6e3011cb12c..d6f1e74ee0facf1bffc3389da45bd705b9ad4e77:/src/global.pri diff --git a/src/global.pri b/src/global.pri index 5ab629a..27e6914 100644 --- a/src/global.pri +++ b/src/global.pri @@ -24,3 +24,12 @@ contains( DISTRO, [Ii]nternet ) { } } +# gcc 4.2.1 on Maemo doesn't understand anything newer then c++98. +# make sure we explicitly add the flag even when building +# with a modern compiler. +# Only under Qt4 because Qt5 needs c++11 +unix: { + equals( QT_MAJOR_VERSION, 4 ) { + QMAKE_CXXFLAGS += -std=c++98 + } +}