aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-25 03:28:05 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-25 03:28:05 +0200
commit160b5ac92a846038372225ab79e29166fd152949 (patch)
treeada5441269dbd13f57479180bcafe60cc6fa7525 /c/main.cpp
parent158e54f071a3b2b41e6105fc3064ce8297fe532a (diff)
downloadEpisodeBrowser-160b5ac92a846038372225ab79e29166fd152949.tar.gz
Fix MSVC compatibility.
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