From b3f78185a5e9cfbbb5f7d8cb1e7b389c7a1c6b5c Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Tue, 25 Mar 2014 16:55:55 +0200 Subject: [PATCH] Add the WIN32_CONSOLE_APP flag If the user passes 'CONFIG += console' to qmake, we define WIN32_CONSOLE_APP that will be used in the source code to determine if this is a console or a GUI application on Win32. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- subsurface-configure.pri | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subsurface-configure.pri b/subsurface-configure.pri index dff3b6f7d..c01af7ab8 100644 --- a/subsurface-configure.pri +++ b/subsurface-configure.pri @@ -150,6 +150,10 @@ else: LIBS += -lmarblewidget libgit21-api { DEFINES += USE_LIBGIT21_API } + +win32: console { + DEFINES += WIN32_CONSOLE_APP +} # # Platform-specific changes #