Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_session.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-07-06 16:55:10 +0200
committerMartin Hořeňovský2019-07-06 16:55:10 +0200
commit11488e63b694176951e991ad87c9ef7c76db50c9 (patch)
tree468fc6dc7684419190b89724ae8f6a9c10aafd6f /include/internal/catch_session.cpp
parent820271bf246afd4a381ff753b0cda14aeb1d0a1c (diff)
downloadcatch3-11488e63b694176951e991ad87c9ef7c76db50c9.tar.gz
Use _WIN32 macro for detecting MSVC Windows
Previously we used `WIN32`, which sometimes does exist, but according to https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019 `_WIN32` is the one that is actually provided by the compiler. Closes #1676.
Diffstat (limited to 'include/internal/catch_session.cpp')
-rw-r--r--include/internal/catch_session.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/catch_session.cpp b/include/internal/catch_session.cpp
index 5aee5d99..f9818f74 100644
--- a/include/internal/catch_session.cpp
+++ b/include/internal/catch_session.cpp
@@ -197,7 +197,7 @@ namespace Catch {
return 0;
}
-#if defined(CATCH_CONFIG_WCHAR) && defined(WIN32) && defined(UNICODE)
+#if defined(CATCH_CONFIG_WCHAR) && defined(_WIN32) && defined(UNICODE)
int Session::applyCommandLine( int argc, wchar_t const * const * argv ) {
char **utf8Argv = new char *[ argc ];