From 111659cc91472d8e9837a8ab9e2d22a4f46d793d Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Fri, 2 Sep 2016 15:22:31 +0300 Subject: [PATCH] ctx: add workaround for ms compilers without va_copy support --- src/ctx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ctx.c b/src/ctx.c index ec2b498..35fd36e 100644 --- a/src/ctx.c +++ b/src/ctx.c @@ -49,6 +49,11 @@ #include "common.h" #include "util.h" +/* Workaround for visual studio without va_copy support. */ +#if defined(_MSC_VER) && _MSC_VER < 1800 +#define va_copy(d,s) ((d) = (s)) +#endif + /** Initialize the Strophe library. * This function initializes subcomponents of the Strophe library and must * be called for Strophe to operate correctly.