Fix the apple's gcc linking error with "inline" function.