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

SDL_config.h: Assume that all platforms have ISO C89 stddef.h #298

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

smcv
Copy link
Contributor

@smcv smcv commented Jun 26, 2023

sdl12-compat's SDL_stdinc.h includes <stddef.h> if HAVE_STDDEF_H is defined, but until now there was nothing that would have defined that macro. In classic SDL 1.2, SDL_stdinc.h historically included this, and some games (such as Debian package 'berusky') rely on it.

stddef.h is required by ISO C89, and is unconditionally included in the headers of some widely portable libraries like libdbus, so it seems safe to assume that all platforms have it (including Windows) unless we hear otherwise.

Resolves: #297

sdl12-compat's SDL_stdinc.h includes `<stddef.h>` if `HAVE_STDDEF_H` is
defined, but until now there was nothing that would have defined that
macro. In classic SDL 1.2, SDL_stdinc.h historically included this, and
some games (such as Debian package 'berusky') rely on it.

stddef.h is required by ISO C89, and is unconditionally included in the
headers of some widely portable libraries like libdbus, so it seems
safe to assume that all platforms have it (including Windows) unless
we hear otherwise.

Resolves: libsdl-org#297
Signed-off-by: Simon McVittie <smcv@debian.org>
@sezero sezero merged commit 65641b5 into libsdl-org:main Jun 26, 2023
5 checks passed
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 1.2 headers included <stddef.h> but sdl12-compat no longer does
2 participants