Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Fix two name clashes with Windows includes #56

Merged
merged 1 commit into from
Aug 5, 2019

Conversation

plule-ansys
Copy link
Contributor

ERROR is a macro in wingdi.h. It can be avoided by defining NOGDI at build level.
DELETE is a macro in winnt.h. It has to be undefined.

Unfortunately I don't see a better fix except renaming the enum members.

  - ERROR is a macro in wingdi.h. It can be avoided by defining NOGDI
  - DELETE is a macro in winnt.h. It has to be undefined
@plule-ansys plule-ansys changed the title Fix two name clash with Windows includes Fix two name clashes with Windows includes Jul 29, 2019
@Jeffail
Copy link
Contributor

Jeffail commented Aug 5, 2019

Looks good, thanks @plule-ansys!

@Jeffail Jeffail merged commit 8d16cda into meltwater:master Aug 5, 2019
@jputcu
Copy link

jputcu commented Nov 27, 2019

I've tried the current master version on Windows under Mingw64, but get many of these ERROR and DELETE conflicts.

@plule-ansys
Copy link
Contributor Author

@jputcu Hello, using bazel the build seems to be still OK on Windows. If you are using CMake, I think you have to manually define NOGDI and possibly _MSC_VER in the CMakeList.txt.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants