Skip to content

Conversation

@maxbachmann
Copy link
Contributor

@maxbachmann maxbachmann commented Mar 10, 2025

This adds missing guards for the WIN32_LEAN_AND_MEAN macro. I am working on the xbox where the toolchain already adds this definition. This leads to warnings about the macro getting redefined.

I think this should be trivial enough to require no issue / news entry

@vstinner
Copy link
Member

I think this should be trivial enough to require no issue / news entry

Please open an issue. I would like to backport this fix to 3.12 and 3.13, having an issue helps tracking backports.

@vstinner vstinner added skip news needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Mar 11, 2025
@maxbachmann maxbachmann changed the title Add missing guards for WIN32_LEAN_AND_MEAN gh-131082: Add missing guards for WIN32_LEAN_AND_MEAN Mar 11, 2025
@maxbachmann
Copy link
Contributor Author

I opened an issue and added the whitespaces for readability

@vstinner vstinner merged commit de8818a into python:main Mar 11, 2025
41 checks passed
@miss-islington-app
Copy link

Thanks @maxbachmann for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 11, 2025
…-131044)

* Add missing guards for WIN32_LEAN_AND_MEAN

* add missing whitespaces
(cherry picked from commit de8818a)

Co-authored-by: Max Bachmann <[email protected]>
@miss-islington-app
Copy link

Sorry, @maxbachmann and @vstinner, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker de8818ae233b8e7722aa5d6f91d4b5a04bd039df 3.12

@bedevere-app
Copy link

bedevere-app bot commented Mar 11, 2025

GH-131084 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Mar 11, 2025
@bedevere-app
Copy link

bedevere-app bot commented Mar 11, 2025

GH-131085 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Mar 11, 2025
@vstinner
Copy link
Member

Merged, thank you. I created backports.

vstinner added a commit that referenced this pull request Mar 11, 2025
#131085)

gh-131082: Add missing guards for WIN32_LEAN_AND_MEAN (#131044)

(cherry picked from commit de8818a)

Co-authored-by: Max Bachmann <[email protected]>
vstinner pushed a commit that referenced this pull request Mar 11, 2025
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
…31044)

* Add missing guards for WIN32_LEAN_AND_MEAN

* add missing whitespaces
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