mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 19:33:29 +01:00
Only use tmpfile workaround for MSVC and not MinGW and friends
Fixes #1270
This commit is contained in:
parent
7f791fa08f
commit
ae590fe216
@ -15,7 +15,7 @@
|
||||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
|
||||
#if defined(CATCH_PLATFORM_WINDOWS)
|
||||
#if defined(_MSC_VER)
|
||||
#include <io.h> //_dup and _dup2
|
||||
#define dup _dup
|
||||
#define dup2 _dup2
|
||||
|
@ -66,7 +66,7 @@ namespace Catch {
|
||||
|
||||
private:
|
||||
std::FILE* m_file = nullptr;
|
||||
#if defined(CATCH_PLATFORM_WINDOWS)
|
||||
#if defined(_MSC_VER)
|
||||
char m_buffer[L_tmpnam] = { 0 };
|
||||
#endif
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user