catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Finish fixing invalid compilation using MinGW
- Commit
021fcee63667e346c619e04bbae932bcea562334- Author
- Lyashenko Arsenii Maksimovich ·
- Committer
- Martin Hořeňovský
- Parents
3a47b8b072d0
Changes
include/internal/catch_output_redirect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/internal/catch_output_redirect.cpp b/include/internal/catch_output_redirect.cpp index 07d4a33c..c43dca04 100644 --- a/include/internal/catch_output_redirect.cpp +++ b/include/internal/catch_output_redirect.cpp @@ -49,7 +49,7 @@ namespace Catch { -#if defined(CATCH_PLATFORM_WINDOWS) +#if defined(_MSC_VER) TempFile::TempFile() { if (tmpnam_s(m_buffer)) { throw std::runtime_error("Could not get a temp filename"); @@ -77,7 +77,7 @@ namespace Catch { std::fclose(m_file); // We manually create the file on Windows only, on Linux // it will be autodeleted -#if defined(CATCH_PLATFORM_WINDOWS) +#if defined(_MSC_VER) std::remove(m_buffer); #endif } @@ -125,7 +125,7 @@ namespace Catch { } // namespace Catch -#if defined(CATCH_PLATFORM_WINDOWS) +#if defined(_MSC_VER) #undef dup #undef dup2 #undef fileno