From 160b5ac92a846038372225ab79e29166fd152949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 25 Aug 2022 03:28:05 +0200 Subject: Fix MSVC compatibility. --- c/main.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'c/main.cpp') 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 -- cgit v1.2.3