1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-01 08:29:37 +00:00

Added va_copy for gcc version == 2

git-svn-id: svn://svn.cc65.org/cc65/trunk@3505 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-05-09 11:58:22 +00:00
parent a48bbd076d
commit 480b61e0bf

View File

@ -40,9 +40,12 @@
/* The watcom compiler doesn't have va_copy and a problematic va_list definition */
#if defined(__WATCOMC__)
#define va_copy(dest,src) memcpy((dest), (src), sizeof (va_list))
#endif
/* GNU C before version 3 has its own name */
#if defined(__GNUC__) && (__GNUC__ == 2)
#define va_copy(dest,src) __va_copy(dest, src)
#endif