This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gets with C++ and GCC before 4.7


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]