[Ffmpeg-devel] [PATCH] portability fixes (ILP32 vs LP64)
Dave Dodge
dododge
Thu Jan 19 15:25:46 CET 2006
On Wed, Jan 18, 2006 at 07:32:39PM +0100, Michael Niedermayer wrote:
> putting a prototype directly before the function is always wrong,
One catch with that (granted this is a language extension) is gcc
function attributes. For some reason gcc only allows them to be
applied to function declarations, not definitions. So I've found
myself having to do ugly things like this:
static inline int foo(int a,int b) __attribute__((__pure__));
static inline int foo(int a,int b)
{
/* whatever */
}
-Dave Dodge
More information about the ffmpeg-devel
mailing list