[FFmpeg-devel] [PATCH] Proved va_copy fallback for old gcc versions.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Mon Dec 30 12:15:02 CET 2013
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>
---
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
--
1.8.5.2
More information about the ffmpeg-devel
mailing list