Browse Source

compat: provide va_copy for old gcc versions.

Since we have this compat/va_copy.h header already we might just as well make
use of it for more than one compiler.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
tags/n2.2-rc1
Reimar Döffinger 11 years ago
parent
commit
b74eead27b
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      compat/va_copy.h

+ 3
- 0
compat/va_copy.h View File

@@ -24,3 +24,6 @@
#if !defined(va_copy) && defined(_MSC_VER)
#define va_copy(dst, src) ((dst) = (src))
#endif
#if !defined(va_copy) && defined(__GNUC__) && __GNUC__ < 3
#define va_copy(dst, src) __va_copy(dst, src)
#endif

Loading…
Cancel
Save