maint(file_system): use msvc _set_errno func

This commit is contained in:
Edo 2023-03-27 11:45:48 +01:00 committed by GitHub
parent c526e74798
commit a365878d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ namespace
FILE* file_open_append_text(const char* filename)
{
errno = 0;
_set_errno(0);
auto* file = std::fopen(filename, "at");
if (file)
{
@ -44,7 +44,7 @@ namespace
FILE* file_open_write_binary(const char* filename)
{
errno = 0;
_set_errno(0);
auto* file = std::fopen(filename, "wb");
if (file)
{