]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2004-11-25 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Thu, 25 Nov 2004 17:14:34 +0000 (17:14 +0000)
committerajs <ajs>
Thu, 25 Nov 2004 17:14:34 +0000 (17:14 +0000)
* 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.

lib/ChangeLog
lib/zebra.h

index d1fa0f4c7bad8a834f947558c7c751ef0649d023..db39f0ae1efb9df28957a659b49d96f8f7cca6f9 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2004-11-25 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
 
        * pid_output.c: (pid_output_lock) Fix 2 bugs: when locking, should
index 5d0e2385513ab967fa89945b741a32ab20665a45..83da37c5471819a402786241ded227d4f117609d 100644 (file)
@@ -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