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.
After extensive work and testing I have created a PR to support clang, gcc/mingw, and gcc/mingw-64 on Windows using winapi.