Only #define va_copy if it isn't #defined yet
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6367 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
3d92823e49
commit
fc808a8c89
|
@ -278,6 +278,7 @@
|
||||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||||
# define WZ_C99
|
# define WZ_C99
|
||||||
#else
|
#else
|
||||||
|
# if !defined(va_copy)
|
||||||
/**
|
/**
|
||||||
* Implements the interface of the C99 macro va_copy such that we can use it on
|
* Implements the interface of the C99 macro va_copy such that we can use it on
|
||||||
* non-C99 systems as well.
|
* non-C99 systems as well.
|
||||||
|
@ -286,7 +287,8 @@
|
||||||
* frame of the variadic function. This is by far the most common setup, though
|
* frame of the variadic function. This is by far the most common setup, though
|
||||||
* it might not always work.
|
* it might not always work.
|
||||||
*/
|
*/
|
||||||
# define va_copy(dest, src) (void)((dest) = (src))
|
# define va_copy(dest, src) (void)((dest) = (src))
|
||||||
|
# endif
|
||||||
#endif /* WZ_Cxx */
|
#endif /* WZ_Cxx */
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue