[FFmpeg-cvslog] compat: provide va_copy for old gcc versions.

Reimar Döffinger git at videolan.org
Mon Dec 30 12:48:23 CET 2013


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Mon Dec 30 12:14:06 2013 +0100| [b74eead27b4729881e02bf4c1ab6750173dde0ae] | committer: Reimar Döffinger

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 at gmx.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b74eead27b4729881e02bf4c1ab6750173dde0ae
---

 compat/va_copy.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/compat/va_copy.h b/compat/va_copy.h
index f894771..3cb5ebe 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



More information about the ffmpeg-cvslog mailing list