Merge in mingw changes.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3873 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -24,7 +24,11 @@ static void _write_file(const char* path, void* blob, size_t size)
|
||||
|
||||
static void _make_dir(const char* path)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
if (mkdir(path) && errno != EEXIST)
|
||||
#else
|
||||
if (mkdir(path, 0755) && errno != EEXIST)
|
||||
#endif
|
||||
{
|
||||
printf("Failed to create directory %s: %s.\n", path, strerror(errno));
|
||||
}
|
||||
|
Reference in New Issue
Block a user