extern
declaration to make your code valid C. The other compilers mentioned may just be using the C++ rules.Anyway, that might be a moot point because it looks like not even gcc 3.3.1 fully supports the C99
inline
rules. I thought that was fixed by now. You can try using static inline
instead, that's valid C99 and should work in GCC. For portable code you probably want to use a macro. [edited by - spock on September 18, 2003 5:36:14 AM]