Re: [Boost-bugs] [Boost C++ Libraries] #7389: __STDC_LIMIT_MACROS can be redefined by boost when using mingw32

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: 2012-10-29 02:25:51


#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:
-------------------------------+--------------------------------------------
Description changed by viboes:

Old description:

> 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

New description:

 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#comment:2>
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:11 UTC