[Ffmpeg-devel] libavutil conflict with system headers on Darwin

Måns Rullgård mru
Tue Nov 28 18:58:11 CET 2006


Diego Biurrun <diego at biurrun.de> writes:

> On Sat, Nov 25, 2006 at 05:42:58PM -0500, Alexander Strange wrote:
>> This no longer compiles:
>> #include <libavutil/common.h>
>> #include <math.h>
>> 
>> because of:
>> #ifndef always_inline
>> #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
>> #    define always_inline __attribute__((always_inline)) inline
>> #else
>> #    define always_inline inline
>> #endif
>> #endif
>> 
>> on common.h:55.
>> 
>> On Darwin, some headers use __attribute__((always_inline)) on their  
>> own, which the above macro then mangles.
>> (__GNUC__ is defined as 4 on all darwin/x86 systems and almost all  
>> ppc systems)
>
> Any ideas how to fix this (cleanly)?  Just add something like ifndef
> Darwin to the above declaration?

That's not what I call clean.  Renaming our version to
ff_always_inline or something would be better.

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-devel mailing list