Skip to content

Remove HAVE_PTRDIFF_T and SIZEOF_PTRDIFF_T #18968

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
Jun 28, 2025
Merged

Conversation

petk
Copy link
Member

@petk petk commented Jun 28, 2025

If I'm not mistaken... The ptrdiff_t is a C89 standard type defined in <stddef.h> and widely available on current platforms. Using it conditionally as in these occurrences is not needed anymore.

The ptrdiff_t is a C89 standard type defined in `<stddef.h>` and widely
available on current platforms. Using it conditionally as in these
occurrences is not needed anymore.
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

lgtm

@petk petk merged commit fffe642 into php:master Jun 28, 2025
9 checks passed
@petk petk deleted the patch-ptrdiff-t branch June 28, 2025 18:16
@petk
Copy link
Member Author

petk commented Jun 28, 2025

Thanks @devnexen for the review. Merged "already" as I'm pretty sure this change is fine and I need it for another PR.

@@ -454,7 +454,6 @@ AC_CHECK_TYPES([socklen_t], [], [], [
dnl These are defined elsewhere than stdio.h.
PHP_CHECK_SIZEOF([intmax_t], [0])
Copy link
Member

@Girgias Girgias Jun 29, 2025

Choose a reason for hiding this comment

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

Potential follow-up, we don't need to check for intmax_t as it is a C99 type and we require C99

Just saw you opened: #18971

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.

3 participants