changed inline to INLINE, removed C99