Skip to content

Remove obsolescent AC_TYPE_SIZE_T #12719

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

Merged
merged 1 commit into from
Nov 19, 2023
Merged

Remove obsolescent AC_TYPE_SIZE_T #12719

merged 1 commit into from
Nov 19, 2023

Conversation

petk
Copy link
Member

@petk petk commented Nov 18, 2023

The macro checks for existence of size_t in <stddef.h> otherwise it sets it to 'unsigned int'. The size_t is part of C89 standard and all platforms should have it. Macro is also marked to be made obsolete in the future versions of Autoconf.

At this point there is still AC_FUNC_ALLOCA in PHP's configure.ac which uses AC_TYPE_SIZE_T under the hood so the check is still done there in the meantime.

The macro checks for existence of size_t in <stddef.h> otherwise it sets
it to 'unsigned int'. The size_t is part of C89 standard and all
platforms should have it. Macro is also marked to be made obsolete in
the future versions of Autoconf.

At this point there is still AC_FUNC_ALLOCA in PHP's configure.ac which
uses AC_TYPE_SIZE_T under the hood so the check is still done there in
the meantime.
@Girgias Girgias merged commit 77ea5c5 into php:master Nov 19, 2023
@petk petk deleted the patch-c89 branch November 19, 2023 21:37
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.

2 participants