summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
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
commit7d6f3db3e2ccba8625d9c8f2a22592ea16ed3fc6 (patch)
tree12d84c9eda1810eafd23f43e3d1d2e2ec60164ac /llvm/lib/System
parent35b927e0d3bd3113dfff152425a70363bd213145 (diff)
downloadbcm5719-llvm-7d6f3db3e2ccba8625d9c8f2a22592ea16ed3fc6.tar.gz
bcm5719-llvm-7d6f3db3e2ccba8625d9c8f2a22592ea16ed3fc6.zip
Unbreak VC++ build.
llvm-svn: 31464
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Win32/Path.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc
index 048bf602975..1eee2bb3c1f 100644
--- a/llvm/lib/System/Win32/Path.inc
+++ b/llvm/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
OpenPOWER on IntegriCloud