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

Fix GDN_EXPORT define with mingw. #771

Merged
merged 1 commit into from
Jun 27, 2022

Conversation

Faless
Copy link
Contributor

@Faless Faless commented Jun 18, 2022

This commit changes the platform detection order to detect mingw compiling for windows (which defines __GNUC__).

This commit also wraps the definition around a guard so it can be overridden via a define at build-time.

Refs: godotengine/godot#62173 #673 , #468 (?), godotengine/webrtc-native#52 .

@Faless Faless added bug This has been identified as a bug topic:gdextension This relates to the new Godot 4 extension implementation labels Jun 18, 2022
@Faless Faless added this to the 4.0 milestone Jun 18, 2022
@Faless Faless force-pushed the fix/4.x_mingw_export branch from 60942a0 to 5bbcd42 Compare June 18, 2022 12:37
This commit changes the platform detection order to detect mingw
compiling for windows (which defines `__GNUC__`).

This commit also wraps the definition around a guard so it can be
overridden via a define at build-time.
@akien-mga akien-mga merged commit 7adc536 into godotengine:master Jun 27, 2022
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Just a note to self, I wonder for a bit if this had/should be cherry-picked for 3.x but it seems it's only defined in godot-headers for 3.x and not in godot-cpp itself (and headers were fixed).

@Faless Faless deleted the fix/4.x_mingw_export branch July 22, 2022 13:37
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 topic:gdextension This relates to the new Godot 4 extension implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants