-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Check EX_OK is defined before including sysexits.h means it is always redefined #129539
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
Labels
Comments
collinfunk
added a commit
to collinfunk/cpython
that referenced
this issue
Feb 1, 2025
Previously the macro would be redefined when the header was included.
collinfunk
added a commit
to collinfunk/cpython
that referenced
this issue
Feb 1, 2025
Previously the macro would be redefined when the header was included.
collinfunk
added a commit
to collinfunk/cpython
that referenced
this issue
Feb 1, 2025
Previously the macro would be redefined when the header was included.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Feb 1, 2025
Add sections: Python includes, system includes, etc. Add a comment explaining why an include is needed.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Feb 1, 2025
Add sections: Python includes, system includes, etc. Add a comment explaining why an include is needed.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Feb 1, 2025
Add sections: Python includes, system includes, etc. Add a comment explaining why an include is needed.
vstinner
added a commit
that referenced
this issue
Feb 2, 2025
Add sections: Python includes, system includes, etc. Add a comment explaining why an include is needed.
collinfunk
added a commit
to collinfunk/cpython
that referenced
this issue
Feb 2, 2025
Previously the macro would be redefined when the header was included.
vstinner
pushed a commit
that referenced
this issue
Feb 2, 2025
Fixed in 3.13 and main branch, the 3.12 backport is on going. Thanks for the fix and the bug report. |
Thanks for backporting it to 3.12 for me! |
srinivasreddy
pushed a commit
to srinivasreddy/cpython
that referenced
this issue
Feb 7, 2025
Add sections: Python includes, system includes, etc. Add a comment explaining why an include is needed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug report
Bug description:
Minor nit, but there is a check for the definition of EX_OK before sysexits.h is included. Meaning it is always redefined when that header exists.
The C standard says redefinition's like this aren't allowed, but in practice I've only seen compilers warn about them.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: