Have you tried compiling as C99. I believe GCC's default is to use gnu90, that is, ANSI C with GNU extensions. Try --std=c99 or --std=gnu99 as compiler flags if you have not done so.