commit | 6a4545ed8b9600860126c9e332831424c4729638 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Sep 03 18:24:56 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Sep 03 18:24:56 2007 +0000 |
tree | b942f5a63d86ef50289c11063b0b1d77ca5729f1 | |
parent | 0b6f0ee3a47f8607623b46f78a26049d11ecfca5 [diff] [blame] |
Add #ifdefs to make the source portable to windows. Patch contributed by Hartmut Kaiser! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41684 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/PrintPreprocessedOutput.cpp b/Driver/PrintPreprocessedOutput.cpp index 3eb11b7..1cfadb3 100644 --- a/Driver/PrintPreprocessedOutput.cpp +++ b/Driver/PrintPreprocessedOutput.cpp
@@ -73,7 +73,9 @@ } static void OutputChar(char c) { -#ifdef USE_STDIO +#if defined(_MSC_VER) + putchar(c); +#elif defined(USE_STDIO) putchar_unlocked(c); #else if (OutBufCur >= OutBufEnd)