[FFmpeg-devel] [PATCH 1/2] Fix clashes with 'I' and 'complex' defined in complex.h

Hendrik Leppkes h.leppkes at gmail.com
Wed May 7 16:40:26 CEST 2014


On Wed, May 7, 2014 at 3:42 PM, Matt Oliver <protogonoi at gmail.com> wrote:
> complex.h creates defines for 'I' and 'complex' which clash with several
> identically named variables used within FFmpeg. This is only an issue when
> including complex.h which previously has never been done (hence no problem
> previously). However complex.h is included automatically by icl's math.h
> header which breaks compilation with icl (and math.h is included almost
> everywhere).
>
> This patch simply renames the offending variables. i.e. 'I' -> 'i' etc.

These are very simple and common names, and will break again in the future.
You should find a better solution for broken compilers.

- Hendrik


More information about the ffmpeg-devel mailing list