llvm.org GIT mirror llvm / 9793808
Fix MSVC warning regarding mkdir function usage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132109 91177308-0d34-0410-b5e6-96231b3b80d8 Francois Pichet 8 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2525 #include
2626 #include
2727 #include
28 #ifdef _MSC_VER
29 #include
30 #endif
2831
2932 /* #define DEBUG_GCDAPROFILING */
3033
8588 pathname = malloc(i + 1);
8689 strncpy(pathname, filename, i);
8790 pathname[i] = '\0';
91 #ifdef _MSC_VER
92 _mkdir(pathname);
93 #else
8894 mkdir(pathname, 0750); /* some of these will fail, ignore it. */
95 #endif
8996 free(pathname);
9097 }
9198 }