mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Only use tmpfile workaround for MSVC and not MinGW and friends
Fixes #1270
This commit is contained in:
		| @@ -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 | ||||
|     }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský