]> vaikene.ee Git - evaf/blobdiff - src/main/GUI/winconsole.cpp
Added iApp::exec() function, which enters the Qt event loop and runs the application.
[evaf] / src / main / GUI / winconsole.cpp
index 6a59c69c5608eddb2c0c152604aa391e7dbb315c..cd35c33fd43f3d082bb5ebd19f267f512df7dade 100644 (file)
  * Agreement provided with the Software.
  */
 
-#ifdef Q_OS_WIN32
-
 #include "winconsole.h"
 
-#define _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_DEPRECATE
 
 #include <windows.h>
 #include <stdio.h>
 
-using namespace eVaf::GUI::Internal;
-
-void enableWinConsole()
+void eVaf::GUI::Internal::enableWinConsole()
 {
     AllocConsole();
     freopen("conin$", "r", stdin);
@@ -36,6 +32,4 @@ void enableWinConsole()
     freopen("conout$", "w", stderr);
 }
 
-#undef _CRT_SECURE_NO_WARNINGS
-
-#endif
+#undef _CRT_SECURE_NO_DEPRECATE