[FFmpeg-devel] use of UINT64_C in libavutil/common.h

VALETTE Eric RD-MAPS-REN eric2.valette
Wed May 5 13:18:02 CEST 2010


Hi,

Sorry to pollute the list but as I've been annoyed by a recent change, I 
wanted at least to notify it.
libavutil/common.h is no more autosufficient for C++ program because 
stdint.h defines UINT64_C only for C program and not C++ program. xbmc 
and mplayer fails to compile because of this.

This define is defined in <stdint.h> The simple include <stdint.h> 
should either be replaced by:

#ifdef __cplusplus
#define __STDC_CONSTANT_MACROS
#ifdef _STDINT_H
#undef _STDINT_H
#endif
# include <stdint.h>
#endif

or the macro definition should be duplicated in this file.

--eric




More information about the ffmpeg-devel mailing list