By default C compilation is ISO C90 where the inline
keyword is not valid. Use either:
- the
__inline
C90 extension, - C++ compilation or
- C99 compilation.
Without either of those, the C90 compiler parses the code as a declaration of a static variable called "inline" without an explicit type and a missing semi-colon.