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

mac/option: explicitly include and define type of global init variable #15414

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

Akemi
Copy link
Member

@Akemi Akemi commented Nov 30, 2024

looked into all the OpaquePointers and additional to mpv_global we only use these structs that are all private: struct mpv_handle, struct input_ctx, struct mpv_render_context, struct mp_log.

so there actually is nothing else to do besides what was already done in #15395. had to open a new PR because github didn't like me force pushing to the same branch when the PR was closed.

the mpv_global struct is a public struct defined in common/global.h. in
the case that this header is included directly or indirectly into our
swift bridging header, code that uses that struct as an OpaquePointer
will fail to build, because swift would now be aware of its actual type.

preemptively include the header and properly define the type to prevent
such errors in the future.

i also checked all other usages of OpaquePointers and this is the only
case where this is relevant.

See e1d30c4 and 4ff9f50 as reference
Copy link

Download the artifacts for this pull request:

Windows
macOS

@Akemi Akemi merged commit 1118637 into mpv-player:master Dec 1, 2024
25 checks passed
@Akemi Akemi deleted the mac_option branch December 1, 2024 18:25
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

Successfully merging this pull request may close these issues.

1 participant