⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

explicitly add string.h and stdlib.h headers#225

Merged
mattip merged 1 commit intopython-cffi:mainfrom
kumaraditya303:main
Feb 4, 2026
Merged

explicitly add string.h and stdlib.h headers#225
mattip merged 1 commit intopython-cffi:mainfrom
kumaraditya303:main

Conversation

@kumaraditya303
Copy link
Contributor

Under newer limited C API versions, these headers are not included by default so this PR adds them explicitly to allow compilation.

@mattip mattip changed the title fix compilation under newer limited C API versions explicitly add string.h and stdlib.h headers Feb 4, 2026
@mattip
Copy link
Contributor

mattip commented Feb 4, 2026

I changed the title. This problem is due to an implicit assumption that including Python.h will include other headers, and CPython has broken that assumption.

Fixes #179

@mattip mattip merged commit 070c68a into python-cffi:main Feb 4, 2026
37 checks passed
@mattip
Copy link
Contributor

mattip commented Feb 4, 2026

Thanks @kumaraditya303

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.

2 participants