Where do you select the C99 features in the IDE?
http://www.keil.com/product/isoansi.asp
http://www.keil.com/support/man/docs/c51/c51_noextend.htm