X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;f=src%2Fmain%2FGUI%2Fwinconsole.cpp;h=cd35c33fd43f3d082bb5ebd19f267f512df7dade;hb=602faa7b96d4467f127ccd581228ca7245283c32;hp=6a59c69c5608eddb2c0c152604aa391e7dbb315c;hpb=4d81227da330c21c7aa0badc88bd5ad4467067fb;p=evaf
diff --git a/src/main/GUI/winconsole.cpp b/src/main/GUI/winconsole.cpp
index 6a59c69..cd35c33 100644
--- a/src/main/GUI/winconsole.cpp
+++ b/src/main/GUI/winconsole.cpp
@@ -17,18 +17,14 @@
* Agreement provided with the Software.
*/
-#ifdef Q_OS_WIN32
-
#include "winconsole.h"
-#define _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_DEPRECATE
#include
#include
-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