Skip to content

pythoncapi_compat: don't define Py_NULL if it is already defined #18699

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
Feb 17, 2025

Conversation

mr-c
Copy link
Contributor

@mr-c mr-c commented Feb 17, 2025

Fixes: #18698

This is a naive fix for the gcc 15 error when compiling for Python 3.12

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@hauntsaninja hauntsaninja merged commit 0808624 into python:master Feb 17, 2025
12 checks passed
@mr-c mr-c deleted the gcc_15_py3.12 branch February 18, 2025 00:01
@cdce8p
Copy link
Collaborator

cdce8p commented Feb 18, 2025

Thanks @mr-c! pythoncapi_compat.h is usually just a copy from https://github.com/python/pythoncapi-compat. It would be awesome if you could do the fix upstream as well.

/CC @vstinner

@vstinner
Copy link
Member

Thanks @mr-c! pythoncapi_compat.h is usually just a copy from https://github.com/python/pythoncapi-compat. It would be awesome if you could do the fix upstream as well.

I fixed the issue upstream: python/pythoncapi-compat#138.

I'm surprised that nobody reported the issue earlier. I didn't notice that the macro is redefined.

@cdce8p
Copy link
Collaborator

cdce8p commented Feb 18, 2025

I fixed the issue upstream: python/pythoncapi-compat#138.

Thanks @vstinner!

x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request Feb 24, 2025
…hon#18699)

Fixes: python#18698 

This is a naive fix for the gcc 15 error when compiling for Python 3.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants