diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-11-09 04:38:09 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-11-09 04:38:09 +0000 |
commit | 416463f7f3f97ffd9994cea0387f2dddd101156e (patch) | |
tree | f794e5f32533f417b9a33ba065d5b6123ac2c30c /clang/lib/Frontend/DocumentXML.cpp | |
parent | b4f65501fcf0f3b855ad9aa14c8c0a5a07c82e0b (diff) | |
download | bcm5719-llvm-416463f7f3f97ffd9994cea0387f2dddd101156e.tar.gz bcm5719-llvm-416463f7f3f97ffd9994cea0387f2dddd101156e.zip |
Try to appease MSVC
llvm-svn: 118487
Diffstat (limited to 'clang/lib/Frontend/DocumentXML.cpp')
-rw-r--r-- | clang/lib/Frontend/DocumentXML.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Frontend/DocumentXML.cpp b/clang/lib/Frontend/DocumentXML.cpp index 75c15831737..9ed10c8b4e8 100644 --- a/clang/lib/Frontend/DocumentXML.cpp +++ b/clang/lib/Frontend/DocumentXML.cpp @@ -105,7 +105,11 @@ std::string DocumentXML::escapeString(const char* pStr, if (isprint(C)) value += C; else { +#ifdef LLVM_ON_WIN32 + sprintf(buffer, "\\%03o", C); +#else snprintf(buffer, sizeof(buffer), "\\%03o", C); +#endif value += buffer; } break; |