diff options
Diffstat (limited to 'tests/gdtest/gdtest.c')
-rw-r--r-- | tests/gdtest/gdtest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gdtest/gdtest.c b/tests/gdtest/gdtest.c index 66a4d2f..0548690 100644 --- a/tests/gdtest/gdtest.c +++ b/tests/gdtest/gdtest.c @@ -304,7 +304,11 @@ const char *gdTestTempDir(void) if (tmpdir_root == NULL) { // On MingW it seems we fail too often. Let default to this and create it ourselves tmpdir_root = "./tmp"; +#if defined(__MINGW32__) || defined(__MINGW64__) if (mkdir(tmpdir_root) == 0) { +#else + if (mkdir(tmpdir_root, 0700) == 0) { +#endif printf("tmpdir failed to be used or initialized (%s).", tmpdir_root); exit(2); } |