aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/fmt/fmtdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/fmt/fmtdef.h')
-rw-r--r--src/lib9/fmt/fmtdef.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib9/fmt/fmtdef.h b/src/lib9/fmt/fmtdef.h
index bfb2aa97..5a63f9be 100644
--- a/src/lib9/fmt/fmtdef.h
+++ b/src/lib9/fmt/fmtdef.h
@@ -105,3 +105,12 @@ int __strfmt(Fmt *f);
t += runetochar(t, &_rune);\
}\
}while(0)
+
+#ifdef va_copy
+# define VA_COPY(a,b) va_copy(a,b)
+# define VA_END(a) va_end(a)
+#else
+# define VA_COPY(a,b) (a) = (b)
+# define VA_END(a)
+#endif
+