[patch] Fix for BZ #15366 (ignore __STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)

Rich Felker dalias@aerifal.cx
Wed Apr 17 04:31:00 GMT 2013


On Tue, Apr 16, 2013 at 05:44:48PM +0200, Florian Weimer wrote:
> On 04/16/2013 05:42 PM, Paul Pluzhnikov wrote:
> >On Tue, Apr 16, 2013 at 12:27 AM, Florian Weimer <fweimer@redhat.com> wrote:
> >
> >>Should we really apply this change retroactively to C++98 and C++03?
> >
> >I just checked: neither C++98, nor C++03, mention <stdint.h>,
> >__STDC_LIMIT_MACROS, or __STDC_CONSTANT_MACROS.
> 
> I'm just wondering if whatever reason prompted the inclusion of the
> C++ kludge into C99 might still apply today when compiling C++98 (or
> C++03) code.  Why wouldn't the rationale continue to apply?

I don't think real-world code was ever a consideration. It was some
stupid thing about the C++ committee not wanting them (being allergic
to macros?) and the preprocessor conditionals were to satisfy them.
Can anyone confirm if this is correct?

Rich



More information about the Libc-alpha mailing list