mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Finish fixing invalid compilation using MinGW
This commit is contained in:
parent
3a47b8b072
commit
021fcee636
@ -49,7 +49,7 @@ namespace Catch {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(CATCH_PLATFORM_WINDOWS)
|
#if defined(_MSC_VER)
|
||||||
TempFile::TempFile() {
|
TempFile::TempFile() {
|
||||||
if (tmpnam_s(m_buffer)) {
|
if (tmpnam_s(m_buffer)) {
|
||||||
throw std::runtime_error("Could not get a temp filename");
|
throw std::runtime_error("Could not get a temp filename");
|
||||||
@ -77,7 +77,7 @@ namespace Catch {
|
|||||||
std::fclose(m_file);
|
std::fclose(m_file);
|
||||||
// We manually create the file on Windows only, on Linux
|
// We manually create the file on Windows only, on Linux
|
||||||
// it will be autodeleted
|
// it will be autodeleted
|
||||||
#if defined(CATCH_PLATFORM_WINDOWS)
|
#if defined(_MSC_VER)
|
||||||
std::remove(m_buffer);
|
std::remove(m_buffer);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -125,7 +125,7 @@ namespace Catch {
|
|||||||
|
|
||||||
} // namespace Catch
|
} // namespace Catch
|
||||||
|
|
||||||
#if defined(CATCH_PLATFORM_WINDOWS)
|
#if defined(_MSC_VER)
|
||||||
#undef dup
|
#undef dup
|
||||||
#undef dup2
|
#undef dup2
|
||||||
#undef fileno
|
#undef fileno
|
||||||
|
Loading…
Reference in New Issue
Block a user