Skip to content

Commit

Permalink
fix: use standard main function on MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored Jun 1, 2022
1 parent e33de8f commit bac7d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/internal/catch_default_main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#ifndef __OBJC__

#if defined(CATCH_CONFIG_WCHAR) && defined(CATCH_PLATFORM_WINDOWS) && defined(_UNICODE) && !defined(DO_NOT_USE_WMAIN)
#if defined(CATCH_CONFIG_WCHAR) && defined(CATCH_PLATFORM_WINDOWS) && !defined(__MINGW32__) && 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
Expand Down

0 comments on commit bac7d6b

Please sign in to comment.