summaryrefslogtreecommitdiffstats
path: root/lib/zebra.h
diff options
context:
space:
mode:
authorajs <ajs>2004-11-25 17:14:34 +0000
committerajs <ajs>2004-11-25 17:14:34 +0000
commit7e2ec270820dec1c0571e53c46576b2c81edb0f7 (patch)
tree6a788026fa68c33fea496dc4fabc60ec0ab9e089 /lib/zebra.h
parent5656599979b99e8c1e503becaa23830bf3154376 (diff)
downloadquagga-7e2ec270820dec1c0571e53c46576b2c81edb0f7.tar.bz2
quagga-7e2ec270820dec1c0571e53c46576b2c81edb0f7.tar.xz
2004-11-25 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* zebra.h: If not C99 and there's no va_copy macro and there is a __va_copy macro, define va_copy as __va_copy.
Diffstat (limited to 'lib/zebra.h')
-rw-r--r--lib/zebra.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index 5d0e2385..83da37c5 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -95,6 +95,12 @@ typedef int socklen_t;
/* misc include group */
#include <stdarg.h>
+#if !(defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
+/* Not C99; do we need to define va_copy? */
+#if !defined(va_copy) && defined(__va_copy)
+#define va_copy(DST,SRC) __va_copy(DST,SRC)
+#endif /* need va_copy */
+#endif /* !C99 */
#include "zassert.h"
#ifdef HAVE_LCAPS