Skip to content

Commit

Permalink
Check for Windows instead of WIN32 for wmain entry point
Browse files Browse the repository at this point in the history
Closes #1849
  • Loading branch information
horenmar committed Feb 16, 2020
1 parent 548de65 commit d6b2a37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/catch2/catch_default_main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6b2a37

Please sign in to comment.