Opened 10 years ago

Last modified 10 years ago

#7389 closed Bugs

__STDC_LIMIT_MACROS can be redefined by boost when using mingw32 — at Initial Version

Reported by: chfast@… Owned by:
Milestone: To Be Determined Component: config
Version: Boost 1.51.0 Severity: Problem
Keywords: Cc:

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

Change History (0)

Note: See TracTickets for help on using tickets.