Skip to content

Instantly share code, notes, and snippets.

@mndrix
Created August 19, 2010 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mndrix/538262 to your computer and use it in GitHub Desktop.
Save mndrix/538262 to your computer and use it in GitHub Desktop.
diff --git a/src/jsprf.c b/src/jsprf.c
index 416c16c..6735520 100644
--- a/src/jsprf.c
+++ b/src/jsprf.c
@@ -58,6 +58,8 @@
*/
#ifdef HAVE_VA_COPY
#define VARARGS_ASSIGN(foo, bar) VA_COPY(foo,bar)
+#elif defined(va_copy)
+#define VARARGS_ASSIGN(foo, bar) va_copy(foo,bar)
#elif defined(HAVE_VA_LIST_AS_ARRAY)
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
#else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment