Subject: [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: 2012-09-18 14:50:49
#7389: __STDC_LIMIT_MACROS can be redefined by boost when using mingw32
------------------------------+---------------------------------------------
Reporter: chfast@⦠| Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.51.0
Severity: Problem | Keywords:
------------------------------+---------------------------------------------
On Windows, compiling with mingw32, __STDC_LIMIT_MACROS macro is redefined
if it was already defined.
This macro is defined in boost/config/platform/win32.hpp by
#if defined(__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 2) ||
((__MINGW32_MAJOR_VERSION == 2) && (__MINGW32_MINOR_VERSION >= 0)))
# define BOOST_HAS_STDINT_H
# define __STDC_LIMIT_MACROS
# define BOOST_HAS_DIRENT_H
# define BOOST_HAS_UNISTD_H
#endif
Maybe it can be changed to:
#if defined(__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 2) ||
((__MINGW32_MAJOR_VERSION == 2) && (__MINGW32_MINOR_VERSION >= 0)))
# define BOOST_HAS_STDINT_H
# if !defined(__STDC_LIMIT_MACROS)
# define __STDC_LIMIT_MACROS
# endif
# define BOOST_HAS_DIRENT_H
# define BOOST_HAS_UNISTD_H
#endif
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7389> 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:10 UTC