aboutsummaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2013-12-30 12:14:06 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2013-12-30 12:38:03 +0100
commitb74eead27b4729881e02bf4c1ab6750173dde0ae (patch)
treed6b904d47734070c97ee3d2fdc9066eff40c3f38 /compat
parent8ccc58bb7d72938986745042741f8670a08a082c (diff)
downloadffmpeg-b74eead27b4729881e02bf4c1ab6750173dde0ae.tar.gz
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>
Diffstat (limited to 'compat')
-rw-r--r--compat/va_copy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/va_copy.h b/compat/va_copy.h
index f894771949..3cb5ebee33 100644
--- a/compat/va_copy.h
+++ b/compat/va_copy.h
@@ -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