http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51785
--- Comment #17 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2012-02-28 17:05:50 UTC --- 2.15 has the gets prototype. It's 2.16 where it has been removed (but the version in the headers only changes from 2.15 to 2.16 when the final 2.16 release is made so you can't distinguish 2.15 from 2.16 development versions simply by examining preprocessor macros).