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:
2022-05-16 22:30:14 +00:00
parent 87224d2bb6
commit 7848b5e560
12 changed files with 188 additions and 50 deletions

View File

@ -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));
}