diff options
| author | 2025-05-25 18:35:12 -0400 | |
|---|---|---|
| committer | 2025-05-25 18:35:12 -0400 | |
| commit | 9fb3646511998310fc8c967c239803f38b2bdc5b (patch) | |
| tree | 92f1bbc2c7cacfcf0c24b49f88ba220cdeebbde9 /src/util/file | |
| parent | ef86574ec5d859727695da65f683f0774a3b4460 (diff) | |
| download | libnaunet-9fb3646511998310fc8c967c239803f38b2bdc5b.tar.gz libnaunet-9fb3646511998310fc8c967c239803f38b2bdc5b.tar.bz2 libnaunet-9fb3646511998310fc8c967c239803f38b2bdc5b.zip | |
Windows XP support
Signed-off-by: Andrew Opalach <andrew@akon.city>
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 |