aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-06-23 18:24:27 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-06-23 18:24:27 +0000
commitaeebc35886726c8d378033d7122f29feba5d4134 (patch)
tree98edd19da2fed60b46727c6be514d1c565217c82 /runtime
parentf05589d0430a543e8158b912dcb8117bf5cb376e (diff)
Fix build for (some versions of?) MinGW. Patch by Ruben Van Boxem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r--runtime/libprofile/GCDAProfiling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/libprofile/GCDAProfiling.c b/runtime/libprofile/GCDAProfiling.c
index 09a1aec84e..e066b227c5 100644
--- a/runtime/libprofile/GCDAProfiling.c
+++ b/runtime/libprofile/GCDAProfiling.c
@@ -89,7 +89,7 @@ static void recursive_mkdir(const char *filename) {
pathname = malloc(i + 1);
strncpy(pathname, filename, i);
pathname[i] = '\0';
-#ifdef _MSC_VER
+#ifdef _WIN32
_mkdir(pathname);
#else
mkdir(pathname, 0750); /* some of these will fail, ignore it. */