Move -DNOGDI to main project file.

This is not related to the cross build but a workaround when including
windows.h that also defines Polygon. So it's now enabled for all Windows
builds including MSYS2.
master
Torsten Paul 2014-12-20 21:46:30 +01:00
parent 33a8c2baaa
commit 4a75c57209
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ CONFIG(mingw-cross-env) {
LIBS += mingw-cross-env/lib/libexpat.a
LIBS += mingw-cross-env/lib/libintl.a
LIBS += mingw-cross-env/lib/libiconv.a
QMAKE_CXXFLAGS += -fpermissive -DNOGDI
QMAKE_CXXFLAGS += -fpermissive
WINSTACKSIZE = 8388608 # 8MB # github issue 116
QMAKE_CXXFLAGS += -Wl,--stack,$$WINSTACKSIZE
LIBS += -Wl,--stack,$$WINSTACKSIZE

View File

@ -116,6 +116,7 @@ macx {
win* {
RC_FILE = openscad_win32.rc
QMAKE_CXXFLAGS += -DNOGDI
}
CONFIG += qt