Force __cdecl calling convention for wmain

Fixes #2219
This commit is contained in:
Martin Hořeňovský 2021-08-26 23:13:27 +02:00
parent ff0a5227ca
commit 07018e2fba
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -20,7 +20,7 @@ namespace Catch {
#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 * []) {
extern "C" int __cdecl wmain (int argc, wchar_t * argv[], wchar_t * []) {
#else
// Standard C/C++ main entry point
int main (int argc, char * argv[]) {