[Ffmpeg-devel] [PATCH] Make use of GCC's __PIC__ definition when available

Måns Rullgård mru
Sat Jul 1 20:09:41 CEST 2006

Diego 'Flameeyes' Petten? <flameeyes at gentoo.org> writes:

>> > -#ifndef PIC
>> > +#if ! __PIC__
>> This generates a warning if __PIC__ is undefined, although I think it
>> is allowed by C99.
> I'm told it works fine also in C89, if that is the problem. GCC seems not to 
> throw any warning here. Is there some other compiler you know will throw 
> warning?

I don't remember which compiler it was, but I have seen it.  Anyhow,
why don't you use #ifndef?  __PIC__ isn't defined at all when not
compiling pic code.

M?ns Rullg?rd
mru at inprovide.com

More information about the ffmpeg-devel mailing list