mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
output: out_fopen()
fix _WIN32
def check (ticket #313, props
Axel Waggershauser)
This commit is contained in:
parent
624574a64c
commit
55a7369cd8
@ -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 = '/';
|
||||
|
Loading…
Reference in New Issue
Block a user