Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7389: __STDC_LIMIT_MACROS can be redefined by boost when using mingw32
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-21 06:18:22
#7389: __STDC_LIMIT_MACROS can be redefined by boost when using mingw32
-------------------------------+--------------------------------------------
Reporter: chfast@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by viboes):
Replying to [comment:7 anonymous]:
> >Isn't stdint.h protected for multiple inclusions?
>
> Maybe!
>
> In C99 it defines different things depending on whether
{{{__STDC_LIMIT_MACROS}}} is defined or not, so rather like assert.h with
{{{NDEBUG}}} it should really "correct itself" each time it's included
depending upon the value of the macro. Thankfully C++11 does the sane
thing and just requires that the limit macros are always defined.
Thanks for the explanation, I didn't know about this requirement.
> Either way, we should really try to get the system defined limits macros
if we can, just because we can't be certain of getting them every time,
isn't a reason not to try.
Agreed.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7389#comment:8> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC