From e259f85fcd23ae920ec54634d922cd9c27fec99f Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Mon, 9 Feb 2015 09:21:18 -0800 Subject: [PATCH] Fix build break with minimal Windows OS CRT va_copy is not available in the minimal Windows OS CRT [tfs-changeset: 1412529] --- src/utilcode/sstring.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utilcode/sstring.cpp b/src/utilcode/sstring.cpp index eabf3f7..697a2af 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 -- 2.7.4