Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-02-03 09:33:42 +0100
committerMartin Hořeňovský2020-02-16 15:54:24 +0100
commitd6b2a3793b6693ac8f51283f6e22cfed9f1eb230 (patch)
treee3e0ceb7d14bb85c8b5d1b843b2d37f89aea362f
parent548de655fda2d31a9bd98d9eeee99e2fe95824a5 (diff)
downloadcatch3-d6b2a3793b6693ac8f51283f6e22cfed9f1eb230.tar.gz
Check for Windows instead of WIN32 for wmain entry point
Closes #1849
-rw-r--r--src/catch2/catch_default_main.hpp3
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