gets with C++ and GCC before 4.7
Ulrich Drepper
drepper@gmail.com
Tue Mar 6 23:08:00 GMT 2012
On Mon, Mar 5, 2012 at 18:38, Joseph S. Myers <joseph@codesourcery.com> wrote:
> #if !defined __USE_ISOC11 \
> - || (defined __cplusplus && __cplusplus <= 201103L && !defined __USE_GNU)
> + || (defined __cplusplus && __cplusplus <= 201103L \
> + && (!defined __USE_GNU || (defined __GNUC__ && !__GNUC_PREREQ (4, 7))))
This is just wrong. It means people who backport gcc fixes would have
to fix up headers as well.
As I said in the gcc bug, gcc should define a macro if the declaration
is needed and this macro should be defined only when absolutely
necessary.
More information about the Libc-alpha
mailing list