Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NOGDI define for building on Windows #825

Open
BlueAmulet opened this issue Jan 12, 2024 · 0 comments
Open

Add NOGDI define for building on Windows #825

BlueAmulet opened this issue Jan 12, 2024 · 0 comments

Comments

@BlueAmulet
Copy link

BlueAmulet commented Jan 12, 2024

In order to get Barony to build correctly, I've had to add the NOGDI define to prevent conflicts between wingdi.h and rapidjson
wingdi.h would #define GetObject to GetObjectA/GetObjectW, which would break using rapidjson in light.cpp

Also added WIN32_LEAN_AND_MEAN, none of the additional includes were necessary.

Minor note: Installing all the dependencies through vcpkg, besides theoraplayer and fmod, the SDL2 includes were in their own folder and I had to change all the #include "SDL2.h" and related defines to #include <SDL2/SDL2.h>

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

No branches or pull requests

1 participant