1 2 3 4 5 6 7 8 9 10 11 12
#include <stdarg.h> /* this assumes that va_copy() will be a macro, it is on gcc */ #ifndef va_copy # ifdef __va_copy # define va_copy(x, y) __va_copy(x, y) # else /* assume copying it works... */ # define va_copy(x, y) x = y # endif #endif