diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-25 03:28:05 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-25 03:28:05 +0200 |
commit | 160b5ac92a846038372225ab79e29166fd152949 (patch) | |
tree | ada5441269dbd13f57479180bcafe60cc6fa7525 /c/main.cpp | |
parent | 158e54f071a3b2b41e6105fc3064ce8297fe532a (diff) | |
download | EpisodeBrowser-160b5ac92a846038372225ab79e29166fd152949.tar.gz |
Fix MSVC compatibility.
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |