mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-01 08:47:42 +00:00
Fix MSVC warning regarding mkdir function usage.
llvm-svn: 132109
This commit is contained in:
parent
837a958ff6
commit
3d8581cca9
@ -26,6 +26,9 @@
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef _MSC_VER
|
||||
#include <direct.h>
|
||||
#endif
|
||||
|
||||
/* #define DEBUG_GCDAPROFILING */
|
||||
|
||||
@ -86,7 +89,11 @@ static void recursive_mkdir(const char *filename) {
|
||||
pathname = malloc(i + 1);
|
||||
strncpy(pathname, filename, i);
|
||||
pathname[i] = '\0';
|
||||
#ifdef _MSC_VER
|
||||
_mkdir(pathname);
|
||||
#else
|
||||
mkdir(pathname, 0750); /* some of these will fail, ignore it. */
|
||||
#endif
|
||||
free(pathname);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user