Skip to content

Conversation

@BastiaanOlij
Copy link
Collaborator

For plugins authored for Windows, especially those that need to call into system APIs, we need to include windows.h which is always fun and games as Microsoft has a habit of redefining stuff to their needs.

One of those redefines is #define interface __STRUCT__ which is causing havoc to our code base.
We can't undefine this, the redefine is part of Microsofts COM system which is a prime candidate to have plugins build against.

We use interface as the variable name to store our interface pointer into Godot. This PR simply renames it to gdn_interface.

I've also added an include of windows.h into our test project so we capture similar issues early through CI.

@BastiaanOlij BastiaanOlij added the bug This has been identified as a bug label Oct 28, 2021
@BastiaanOlij BastiaanOlij added this to the 4.0 milestone Oct 28, 2021
@BastiaanOlij BastiaanOlij self-assigned this Oct 28, 2021
@BastiaanOlij
Copy link
Collaborator Author

wrapped.hpp changed a lot due to clang-format not having been ran on it, or so it seems...

@akien-mga akien-mga merged commit b1dbaad into godotengine:master Oct 28, 2021
@akien-mga
Copy link
Member

Thanks!

@BastiaanOlij BastiaanOlij deleted the rename_interface branch October 28, 2021 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This has been identified as a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants