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

Måns Rullgård mans
Thu May 6 13:27:05 CEST 2010


VALETTE Eric RD-MAPS-REN <eric2.valette at orange-ftgroup.com> writes:

> 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.

The file you are talking about uses the C language.  It does not work
in Fortran, Java, ADA, Scheme, COBOL, or Modula-3 to name but a few.
What makes you think it should work with C++?

> 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

You have got to be kidding me.  

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list