From d6b2a3793b6693ac8f51283f6e22cfed9f1eb230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Mon, 3 Feb 2020 09:33:42 +0100 Subject: [PATCH] Check for Windows instead of WIN32 for wmain entry point Closes #1849 --- src/catch2/catch_default_main.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/catch2/catch_default_main.hpp b/src/catch2/catch_default_main.hpp index 9e605159c2..a61ad98d97 100644 --- a/src/catch2/catch_default_main.hpp +++ b/src/catch2/catch_default_main.hpp @@ -9,10 +9,11 @@ #define TWOBLUECUBES_CATCH_DEFAULT_MAIN_HPP_INCLUDED #include +#include #ifndef __OBJC__ -#if defined(CATCH_CONFIG_WCHAR) && defined(WIN32) && defined(_UNICODE) && !defined(DO_NOT_USE_WMAIN) +#if defined(CATCH_CONFIG_WCHAR) && defined(CATCH_PLATFORM_WINDOWS) && defined(_UNICODE) && !defined(DO_NOT_USE_WMAIN) // Standard C/C++ Win32 Unicode wmain entry point extern "C" int wmain (int argc, wchar_t * argv[], wchar_t * []) { #else