Anders Magnusson added a comment - 30/Oct/10 10:31 PM This behavior is as it is intended to. Note that gcc do not follow C99 specifications when it comes to inline:
- In C99 declaration of "extern inline" will create a function with external linkage (i.e. a normal function).
- In gcc "extern inline" will make a function that is only inlined, no external linkage.
Pcc follows C99 strictly, but accept the gcc compat attribute gnu_inline which tells that an inline function shall obey gcc syntax.
Also, the define __GNUC_STDC_INLINE__ can be checked whether the inlining is c99 or gcc.
In newer gcc using -std=c99 will make it use c99 syntax. It's not default though.