output: out_fopen() fix _WIN32 def check (ticket #313, props

Axel Waggershauser)
This commit is contained in:
gitlost 2024-03-05 22:15:00 +00:00
parent 624574a64c
commit 55a7369cd8

View File

@ -971,7 +971,7 @@ INTERNAL FILE *out_fopen(const char filename[256], const char *mode) {
memcpy(dirname, filename, dirend - filename);
dirname[dirend - filename] = '/';
dirname[dirend - filename + 1] = '\0';
#if _WIN32
#ifdef _WIN32
for (d = dirname; *d; d++) { /* Convert to Unix separators */
if (*d == '\\') {
*d = '/';