File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ // If the user hasn't specified a target Windows version via _WIN32_WINNT, and is using an _xp toolset (indicated by _USING_V110_SDK71_),
2
+ // then _WIN32_WINNT will be set to Windows XP (0x0501).
3
+ #if !defined(_WIN32_WINNT) && defined(_USING_V110_SDK71_)
4
+ #define _WIN32_WINNT _WIN32_WINNT_WINXP
5
+ #define WINVER _WIN32_WINNT_WINXP
6
+ #endif
7
+
8
+ // For memory leak finding
1
9
#ifdef _CRTDBG_MAP_ALLOC
2
10
#include < stdlib.h>
3
11
#include < crtdbg.h>
4
12
#endif
13
+
5
14
#include < iostream>
6
15
#include < ctime>
7
16
#include < sstream>
@@ -87,11 +96,15 @@ int ExitWithError(const char * msg, int error)
87
96
88
97
int main ()
89
98
{
99
+ // Enable memory tracking (does nothing in Release)
90
100
_CrtSetDbgFlag (_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
101
+
102
+ // Handle closing nicely
91
103
SetConsoleCtrlHandler (CloseHandler, TRUE );
92
104
93
- // for colouring
105
+ // For console text colouring
94
106
hStdout = GetStdHandle (STD_OUTPUT_HANDLE);
107
+
95
108
#ifdef _lacewing_debug
96
109
FILE * f = NULL ;
97
110
if (fopen_s (&f, " Bluewing Server error.log" , " w" ))
You can’t perform that action at this time.
0 commit comments