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

Feature visibility #221

Merged
merged 3 commits into from
Mar 14, 2025
Merged

Feature visibility #221

merged 3 commits into from
Mar 14, 2025

Conversation

cburstedde
Copy link
Owner

Add visibility attribute for GCC >= 4

Proposed changes

Using p4est from a certain python library turned up multiple instances of the same extern variable, namely the package id (used internally for registering log priorities and debug memory counters). Add some defines to use the visibility attribute.

The attribute is placed only in the .h file for now. To make it work on windows, we may have to add it in front of the definition in the .c file, which I find a bit annoying. Shall we do it anyway or is the current approach sufficient?

Curious on feedback. @tamiko @sloede @lukasdreyer

@cburstedde
Copy link
Owner Author

I'll merge this (possibly partial) fix now since we're getting ready for a release. I'll be more than happy to reopen for the cygwin and win32 branches in sc.h.

@cburstedde cburstedde merged commit f23c91e into develop Mar 14, 2025
28 checks passed
@cburstedde cburstedde deleted the feature-visibility branch March 14, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant