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: Jim Bell <jim@…> 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)

macros-mingw-gcc-4.3.3.txt (4.2 KB ) - added by Jim Bell <jim@…> 12 years ago.
mingw-gcc-4.3.3 macros
macros-mingw-gcc-4.4.0.txt (4.3 KB ) - added by Jim Bell <jim@…> 12 years ago.
mingw-gcc-4.4.0 macros

Download all attachments as: .zip

Change History (4)

by Jim Bell <jim@…>, 12 years ago

Attachment: macros-mingw-gcc-4.3.3.txt added

mingw-gcc-4.3.3 macros

by Jim Bell <jim@…>, 12 years ago

Attachment: macros-mingw-gcc-4.4.0.txt added

mingw-gcc-4.4.0 macros

comment:1 by Jim Bell <jim@…>, 12 years ago

Milestone: To Be DeterminedBoost-1.45.0

comment:2 by John Maddock, 12 years ago

Resolution: worksforme
Status: newclosed

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).

Note: See TracTickets for help on using tickets.