Skip to content

Cleanup __atomic_load_n() detection#15374

Open
cgutman wants to merge 2 commits intolibsdl-org:mainfrom
cgutman:builtin_sdl3
Open

Cleanup __atomic_load_n() detection#15374
cgutman wants to merge 2 commits intolibsdl-org:mainfrom
cgutman:builtin_sdl3

Conversation

@cgutman
Copy link
Copy Markdown
Collaborator

@cgutman cgutman commented Apr 12, 2026

Description

Cleans up the detection logic for __atomic_load_n() by using SDL_HAS_BUILTIN() instead of __has_builtin() and removes the very old guard preventing use of __atomic_load_n() on Android.

Existing Issue(s)

Copy link
Copy Markdown
Contributor

@sezero sezero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sezero sezero requested review from madebr and slouken April 12, 2026 19:49
@madebr
Copy link
Copy Markdown
Contributor

madebr commented Apr 12, 2026

This looks good to me, but I don't have much experience with older toolchains and such.

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.

3 participants