aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Win32/Path.inc
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2006-11-05 19:31:28 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2006-11-05 19:31:28 +0000
commitd41b30def3181bce4bf87e8bde664d15663165d0 (patch)
treeb4a9c4e0797b23f78257e4cb0f74fde8ec183b2e /lib/System/Win32/Path.inc
parentbcf81242df7983b8e86bec179c4fa04265b26db2 (diff)
downloadexternal_llvm-d41b30def3181bce4bf87e8bde664d15663165d0.zip
external_llvm-d41b30def3181bce4bf87e8bde664d15663165d0.tar.gz
external_llvm-d41b30def3181bce4bf87e8bde664d15663165d0.tar.bz2
Unbreak VC++ build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/Path.inc')
-rw-r--r--lib/System/Win32/Path.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc
index 048bf60..1eee2bb 100644
--- a/lib/System/Win32/Path.inc
+++ b/lib/System/Win32/Path.inc
@@ -124,7 +124,12 @@ Path::GetTemporaryDirectory(std::string* ErrMsg) {
// Append a subdirectory passed on our process id so multiple LLVMs don't
// step on each other's toes.
+#ifdef __MINGW32__
+ // Mingw's Win32 header files are broken.
sprintf(pathname, "LLVM_%u", unsigned(GetCurrentProcessId()));
+#else
+ sprintf(pathname, "LLVM_%u", GetCurrentProcessId());
+#endif
result.appendComponent(pathname);
// If there's a directory left over from a previous LLVM execution that