Boost logo

Boost :

Subject: Re: [boost] [winapi] Major changes in develop
From: Edward Diener (eldiener_at_[hidden])
Date: 2015-07-01 20:28:16


On 7/1/2015 5:28 PM, Andrey Semashev wrote:
> On 01.07.2015 20:47, Edward Diener wrote:
>> On 6/21/2015 12:25 PM, Andrey Semashev wrote:
>>>
>>> If anyone has problems with this change, please let me know.
>>
>> Versions of mingw/gcc, which are gcc 4.8.1-4 and below, fail because
>> their windows.h names for some things are not the same as being used by
>> winapi, even when i use the define above. This also goes for clang,
>> which targets mingw/gcc 4.8.1-4.
>>
>> Most noticeable is _RTL_CRITICAL_SECTION with their name being
>> _CRITICAL_SECTION instead.
>
> I suppose, I could add workarounds for the legacy MinGW. My concern is
> clang, though. When it begins to support MinGW64 SDK then I won't be
> able to deduce whether these workarounds are needed or not.

I am working on some workarounds and will submit them as a PR when it is
ready.

BTW it is possible to know whether mingw or mingw-64 is being used, both
with gcc and clang. My PR will incorporate this knowledge for winapi in
a clean way.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk