Skip to content

Commit

Permalink
compat: provide va_copy for old gcc versions.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rdoeffinger committed Dec 30, 2013
1 parent 8ccc58b commit b74eead
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compat/va_copy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b74eead

Please sign in to comment.