C99 is a pain