make gcc happy, function in header file use static inline to replace static