Check for Windows instead of WIN32 for wmain entry point

Closes #1849
This commit is contained in:
Martin Hořeňovský 2020-02-03 09:33:42 +01:00
parent f20a9dbc6e
commit 1715b6b923
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -9,10 +9,11 @@
#define TWOBLUECUBES_CATCH_DEFAULT_MAIN_HPP_INCLUDED
#include "catch_session.h"
#include "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