changeset 255:302d133294d3 libavformat

Fix compilation with ccc
author mellum
date Mon, 22 Sep 2003 20:29:58 +0000
parents bca5abd97e43
children 2efd6fe95fc6
files avformat.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/avformat.h	Sat Sep 20 21:54:33 2003 +0000
+++ b/avformat.h	Mon Sep 22 20:29:58 2003 +0000
@@ -505,6 +505,7 @@
 
 void __dynarray_add(unsigned long **tab_ptr, int *nb_ptr, unsigned long elem);
 
+#ifdef __GNUC__
 #define dynarray_add(tab, nb_ptr, elem)\
 do {\
     typeof(tab) _tab = (tab);\
@@ -512,6 +513,12 @@
     (void)sizeof(**_tab == _elem); /* check that types are compatible */\
     __dynarray_add((unsigned long **)_tab, nb_ptr, (unsigned long)_elem);\
 } while(0)
+#else
+#define dynarray_add(tab, nb_ptr, elem)\
+do {\
+    __dynarray_add((unsigned long **)(tab), nb_ptr, (unsigned long)(elem));\
+} while(0)
+#endif
 
 time_t mktimegm(struct tm *tm);
 const char *small_strptime(const char *p, const char *fmt,