util: Remove va_copy() implementation.
authorBen Pfaff <blp@ovn.org>
Fri, 1 Apr 2016 04:18:24 +0000 (21:18 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 1 Apr 2016 04:48:21 +0000 (21:48 -0700)
This was here to help out older compilers that do not include va_copy(),
which was new in C99.  All the compilers we care about these days (GCC,
Clang, MSVC) do support va_copy(), so remove it.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
lib/util.h

index 41c5ea6..5a429d7 100644 (file)
 #include "openvswitch/types.h"
 #include "openvswitch/util.h"
 
-#ifndef va_copy
-#ifdef __va_copy
-#define va_copy __va_copy
-#else
-#define va_copy(dst, src) ((dst) = (src))
-#endif
-#endif
-
 extern char *program_name;
 
 #define __ARRAY_SIZE_NOCHECK(ARRAY) (sizeof(ARRAY) / sizeof((ARRAY)[0]))