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

Functions which return function pointers now return SDL_FunctionPoint… #7036

Merged
merged 1 commit into from Jan 9, 2023

Conversation

slouken
Copy link
Collaborator

@slouken slouken commented Jan 9, 2023

…er instead of void*

This fixes the clang warning "Cast between pointer-to-function and pointer-to-object is an extension"

You can define SDL_FUNCTION_POINTER_IS_VOID_POINTER in your project to restore the previous behavior.

Fixes #2866

@slouken slouken force-pushed the sdl-functionpointer branch 4 times, most recently from 331ba0e to 7ce2eb6 Compare January 9, 2023 23:24
…er instead of void*

This fixes the clang warning "Cast between pointer-to-function and pointer-to-object is an extension"

You can define SDL_FUNCTION_POINTER_IS_VOID_POINTER in your project to restore the previous behavior.

Fixes libsdl-org#2866
@slouken slouken merged commit e9b86ee into libsdl-org:main Jan 9, 2023
@slouken slouken deleted the sdl-functionpointer branch January 9, 2023 23:46
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.

SDL_GL_GetProcAddress definition incompatible with portable C++
1 participant