Revision 9a2cb05f libavformat/avformat.h

View differences:

libavformat/avformat.h
1337 1337
 */
1338 1338
int av_match_ext(const char *filename, const char *extensions);
1339 1339

  
1340
#ifdef HAVE_AV_CONFIG_H
1341

  
1342
void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem);
1343

  
1344
#ifdef __GNUC__
1345
#define dynarray_add(tab, nb_ptr, elem)\
1346
do {\
1347
    __typeof__(tab) _tab = (tab);\
1348
    __typeof__(elem) _elem = (elem);\
1349
    (void)sizeof(**_tab == _elem); /* check that types are compatible */\
1350
    ff_dynarray_add((intptr_t **)_tab, nb_ptr, (intptr_t)_elem);\
1351
} while(0)
1352
#else
1353
#define dynarray_add(tab, nb_ptr, elem)\
1354
do {\
1355
    ff_dynarray_add((intptr_t **)(tab), nb_ptr, (intptr_t)(elem));\
1356
} while(0)
1357
#endif
1358

  
1359
time_t mktimegm(struct tm *tm);
1360
struct tm *brktimegm(time_t secs, struct tm *tm);
1361
const char *small_strptime(const char *p, const char *fmt,
1362
                           struct tm *dt);
1363

  
1364
#endif /* HAVE_AV_CONFIG_H */
1365

  
1366 1340
#endif /* AVFORMAT_AVFORMAT_H */

Also available in: Unified diff