aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 9919200..05cd3d7 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -12,7 +12,7 @@
#include "test.h"
#include "util.h"
-#ifdef DEBUG
+#ifdef _DEBUG
#define XMAIN 30
#define YMAIN 30
#else
@@ -79,7 +79,11 @@ static INT_PTR CALLBACK AboutDlgProc(HWND, UINT, WPARAM, LPARAM);
/* Try to style application according to current Windows theme. */
static void UpdateTheme();
-int WINAPI WinMain(const HINSTANCE hInstance, const HINSTANCE, char* const, const int nCmdShow)
+int WINAPI WinMain(
+ _In_ const HINSTANCE hInstance,
+ _In_opt_ const HINSTANCE,
+ _In_ char* const,
+ _In_ const int nCmdShow)
{
setbuf(stdout, nullptr);
LIBXML_TEST_VERSION;
@@ -129,7 +133,7 @@ int WINAPI WinMain(const HINSTANCE hInstance, const HINSTANCE, char* const, cons
g_elv->Update();
g_elv->RestoreFocus();
-#ifdef DEBUG
+#ifdef _DEBUG
RunTests();
#endif