use __inline__ instead of inline to avoid build errors with -ansi