Skip to content

Commit

Permalink
util: Remove va_copy() implementation.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Russell Bryant <[email protected]>
  • Loading branch information
blp committed Apr 1, 2016
1 parent 036c7f0 commit cab07b6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@
#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]))
Expand Down

0 comments on commit cab07b6

Please sign in to comment.