Fix build break with minimal Windows OS CRT
authorJan Kotas <jkotas@microsoft.com>
Mon, 9 Feb 2015 17:21:18 +0000 (09:21 -0800)
committerJan Kotas <jkotas@microsoft.com>
Mon, 9 Feb 2015 17:21:18 +0000 (09:21 -0800)
va_copy is not available in the minimal Windows OS CRT

[tfs-changeset: 1412529]

src/utilcode/sstring.cpp

index eabf3f7..697a2af 100644 (file)
@@ -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