Opened 12 years ago
Closed 12 years ago
#4834 closed Bugs (worksforme)
MinGW-32/gcc-4.x doesn't define__MINGW32_MAJOR_VERSION or __MINGW32_MINOR_VERSION
| Reported by: | Owned by: | John Maddock | |
|---|---|---|---|
| Milestone: | Boost 1.45.0 | Component: | config |
| Version: | Boost Development Trunk | Severity: | Problem |
| Keywords: | mingw gcc-4 | Cc: | jim@… |
Description
MinGW doesn't define macros __MINGW32_MAJOR_VERSION or __MINGW32_MINOR_VERSION in gcc-4.x, but I see decision-making based on those macros in config/platform/win32.hpp.
I've attached two macro-dump files (i.e., from gcc -dM -E ) and they show the major and minor revisions via __GNUC__ and __GNUC_MINOR__
Attachments (2)
Change History (4)
by , 12 years ago
| Attachment: | macros-mingw-gcc-4.3.3.txt added |
|---|
comment:1 by , 12 years ago
| Milestone: | To Be Determined → Boost-1.45.0 |
|---|
comment:2 by , 12 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
Those macros are defined in _mingw.h which win32.hpp includes when __MINGW32__ is defined.
I've just checked with Mingw GCC-4.5.0 and __MINGW32_MAJOR_VERSION=3 and __MINGW32_MINOR_VERSION=18.
Closing for now, please reopen if your version of _mingw.h really doesn't define these (or isn't getting #included).

mingw-gcc-4.3.3 macros