diff options
author | Falk Hüffner <mellum@users.sourceforge.net> | 2003-09-22 20:29:58 +0000 |
---|---|---|
committer | Falk Hüffner <mellum@users.sourceforge.net> | 2003-09-22 20:29:58 +0000 |
commit | e4e70d2e2db9d47d6e85a5136aad0147eb8c5809 (patch) | |
tree | cc4e51fe6047db9f7a5fa69ca28b656e2561e2b4 /libavformat/avformat.h | |
parent | fd0f45e58b010c0d7049914a392c3e96a2223107 (diff) | |
download | ffmpeg-e4e70d2e2db9d47d6e85a5136aad0147eb8c5809.tar.gz |
Fix compilation with ccc
Originally committed as revision 2298 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 61919e9f3e..f10c212d33 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -505,6 +505,7 @@ char *pstrcat(char *buf, int buf_size, const char *s); 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 @@ do {\ (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, |