Show console on windows only in debug mode

This commit is contained in:
Deve 2014-08-22 20:40:22 +02:00
parent 8711955bdc
commit 90ecf50414

View File

@ -1155,8 +1155,12 @@ void askForInternetPermission()
//=============================================================================
#if defined(DEBUG) && defined(WIN32) && !defined(__CYGWIN__)
#pragma comment(linker, "/SUBSYSTEM:console")
#if defined(WIN32) && defined(_MSC_VER)
#ifdef DEBUG
#pragma comment(linker, "/SUBSYSTEM:console")
#else
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
#endif
#endif
// ----------------------------------------------------------------------------