mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
compile fix for win32
This commit is contained in:
parent
2338d0c157
commit
d7487a1344
1 changed files with 4 additions and 0 deletions
|
@ -220,7 +220,11 @@ make_parents (const char *_path)
|
|||
for (p = path; *p && (d = strchr (p, '/')); p = d + 1) {
|
||||
t = *d;
|
||||
*d = 0;
|
||||
#ifdef WIN32
|
||||
if (mkdir (path) < 0)
|
||||
#else
|
||||
if (mkdir (path, 0777) < 0)
|
||||
#endif
|
||||
if (errno != EEXIST)
|
||||
return -1;
|
||||
*d = t;
|
||||
|
|
Loading…
Reference in a new issue