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 3, 2020
1 parent f20a9db commit 1715b6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/internal/catch_default_main.hpp
Expand Up @@ -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
Expand Down

0 comments on commit 1715b6b

Please sign in to comment.