mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +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:
parent
a48bbd076d
commit
480b61e0bf
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user