comparison avformat.h @ 255:302d133294d3 libavformat

Fix compilation with ccc
author mellum
date Mon, 22 Sep 2003 20:29:58 +0000
parents 4d5d04d45230
children 8bb470d85249
comparison
equal deleted inserted replaced
254:bca5abd97e43 255:302d133294d3
503 void pstrcpy(char *buf, int buf_size, const char *str); 503 void pstrcpy(char *buf, int buf_size, const char *str);
504 char *pstrcat(char *buf, int buf_size, const char *s); 504 char *pstrcat(char *buf, int buf_size, const char *s);
505 505
506 void __dynarray_add(unsigned long **tab_ptr, int *nb_ptr, unsigned long elem); 506 void __dynarray_add(unsigned long **tab_ptr, int *nb_ptr, unsigned long elem);
507 507
508 #ifdef __GNUC__
508 #define dynarray_add(tab, nb_ptr, elem)\ 509 #define dynarray_add(tab, nb_ptr, elem)\
509 do {\ 510 do {\
510 typeof(tab) _tab = (tab);\ 511 typeof(tab) _tab = (tab);\
511 typeof(elem) _elem = (elem);\ 512 typeof(elem) _elem = (elem);\
512 (void)sizeof(**_tab == _elem); /* check that types are compatible */\ 513 (void)sizeof(**_tab == _elem); /* check that types are compatible */\
513 __dynarray_add((unsigned long **)_tab, nb_ptr, (unsigned long)_elem);\ 514 __dynarray_add((unsigned long **)_tab, nb_ptr, (unsigned long)_elem);\
514 } while(0) 515 } while(0)
516 #else
517 #define dynarray_add(tab, nb_ptr, elem)\
518 do {\
519 __dynarray_add((unsigned long **)(tab), nb_ptr, (unsigned long)(elem));\
520 } while(0)
521 #endif
515 522
516 time_t mktimegm(struct tm *tm); 523 time_t mktimegm(struct tm *tm);
517 const char *small_strptime(const char *p, const char *fmt, 524 const char *small_strptime(const char *p, const char *fmt,
518 struct tm *dt); 525 struct tm *dt);
519 526