catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Check for Windows instead of WIN32 for wmain entry point
- Commit
d6b2a3793b6693ac8f51283f6e22cfed9f1eb230- Author
- Martin Hořeňovský ·
- Parents
548de655fda2
Changes
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 9e605159..a61ad98d 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 <catch2/catch_session.h> +#include <catch2/catch_platform.h> #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