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

VALETTE Eric RD-MAPS-REN eric2.valette
Thu May 6 15:43:00 CEST 2010

On 05/06/2010 02:59 PM, *Diogo Franco* wrote:

Sorry for unthreaded post. I was not subscribed and not directly put in 

> _STDINT_H is platform-dependent and undefining is sure to cause your
> compilation to fail or at the very least emit a lot of warnings.
Note that I redefine it immediately by reincluding the stdint.h file it. 
Including  the stdint.h file alone is not sufficient has it may have 
been included before loading common.h..
> Also,
> none of the ffmpeg headers contain any C++ workarounds, not even the
> simple ones like wrapping around extern "C".
Saying that you mustrealize that you basically state that a C++ program 
cannot use (be linked with) ffmpeg libraries because if you want to use 
libraries, you need to get acces to their API definition (and include 
some .h files)
> If you want it to work, either add -D__STDC_CONSTANT_MACROS to your
> build scripts
because of that non selfcontained include file (ok its self contained 
for C program on some system not all)
>   or #define __STDC_CONSTANT_MACROS just before including
> the ffmpeg headers.
Not sufficient if other includes did include stdint.h already.


More information about the ffmpeg-devel mailing list