diff options
Diffstat (limited to 'src/util/file')
| -rw-r--r-- | src/util/file/file_stdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/file/file_stdio.c b/src/util/file/file_stdio.c index ae07908..97dd0f0 100644 --- a/src/util/file/file_stdio.c +++ b/src/util/file/file_stdio.c @@ -17,7 +17,7 @@ AL_ASSERT_TYPE_SIZE(off_t, 8); static inline bool open_stdio_file(FILE **file, str *path, const char *mode) { char *c_str = al_str_to_c_str(path); -#ifdef NAUNET_ON_WINDOWS +#if defined NAUNET_ON_WINDOWS && !defined NAUNET_WIN32_COMPAT_MODE // Still sets errno, according to the Microsoft docs. errno_t ret = fopen_s(file, c_str, mode); #else |