Skip to content

Fix MinGW build - #3113

Closed
MarcelRaad wants to merge 2 commits into
curl:masterfrom
MarcelRaad:fix_mingw_build
Closed

MarcelRaad wants to merge 2 commits into
curl:masterfrom
MarcelRaad:fix_mingw_build

Conversation

@MarcelRaad

Copy link
Copy Markdown
Member
  • define NOGDI in addition to WIN32_LEAN_AND_MEAN on Windows
  • don't use GetTickCount64 and InitializeCriticalSectionEx on classic MinGW

This fixes 1) the MinGW CMake build and 2) MinGW targeting Windows Vista or later.

Classic MinGW has neither InitializeCriticalSectionEx nor
GetTickCount64, independent of the target Windows version.

Closes
This avoids an ERROR macro clash between <wingdi.h> and <arpa/tftp.h>
on MinGW.

Closes
MarcelRaad added a commit to MarcelRaad/curl that referenced this pull request Oct 9, 2018
This avoids an ERROR macro clash between <wingdi.h> and <arpa/tftp.h>
on MinGW.

Closes curl#3113
@MarcelRaad MarcelRaad closed this in 940e1c1 Oct 9, 2018
@MarcelRaad
MarcelRaad deleted the fix_mingw_build branch October 9, 2018 06:35
@MarcelRaad

Copy link
Copy Markdown
Member Author

Thanks for the review!

@lock lock Bot locked as resolved and limited conversation to collaborators Jan 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants