summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2015-02-09 09:21:18 -0800
committerJan Kotas <jkotas@microsoft.com>2015-02-09 09:21:18 -0800
commite259f85fcd23ae920ec54634d922cd9c27fec99f (patch)
treebb9a37426c4e7758cfdafaaf4123b1306020c0cf /src
parenta2f1a4d5d6a5e999989a830a982ec4191638fcb7 (diff)
downloadcoreclr-e259f85fcd23ae920ec54634d922cd9c27fec99f.tar.gz
coreclr-e259f85fcd23ae920ec54634d922cd9c27fec99f.tar.bz2
coreclr-e259f85fcd23ae920ec54634d922cd9c27fec99f.zip
Fix build break with minimal Windows OS CRT
va_copy is not available in the minimal Windows OS CRT [tfs-changeset: 1412529]
Diffstat (limited to 'src')
-rw-r--r--src/utilcode/sstring.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utilcode/sstring.cpp b/src/utilcode/sstring.cpp
index eabf3f7374..697a2afe67 100644
--- a/src/utilcode/sstring.cpp
+++ b/src/utilcode/sstring.cpp
@@ -2034,6 +2034,11 @@ static void CheckForFormatStringGlobalizationIssues(const SString &format, const
#define ERANGE 34
#endif
+#if defined(_MSC_VER)
+#undef va_copy
+#define va_copy(dest,src) (dest = src)
+#endif
+
void SString::VPrintf(const CHAR *format, va_list args)
{
CONTRACT_VOID