diff options
| author | Martin Hořeňovský | 2020-02-03 09:33:42 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-02-16 15:54:24 +0100 |
| commit | d6b2a3793b6693ac8f51283f6e22cfed9f1eb230 (patch) | |
| tree | e3e0ceb7d14bb85c8b5d1b843b2d37f89aea362f /src | |
| parent | 548de655fda2d31a9bd98d9eeee99e2fe95824a5 (diff) | |
| download | catch3-d6b2a3793b6693ac8f51283f6e22cfed9f1eb230.tar.gz | |
Check for Windows instead of WIN32 for wmain entry point
Closes #1849
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/catch_default_main.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |