Sun Studio 12 Update 1: C User's Guide

D.1.10.1 Sun C compiler gcc compatibility for inline functions

To obtain behavior from the Sun Studio C compiler that is compatible with gcc's implementation of extern inline functions for most programs, use the -features=no%extinl flag. When this flag is specified the Sun Studio C compiler will treat the function as if it were declared as a static inline function.

The one place this is not compatible will be when the address of the function is taken. With gcc this will be an address of a global function, and with Sun's compiler the local static definition address will be used.