Skip to content

_testexternalinspection.c doesn't check for undefined TARGET_OS_OSX #117891

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
jmroot opened this issue Apr 15, 2024 · 1 comment · Fixed by #118073
Closed

_testexternalinspection.c doesn't check for undefined TARGET_OS_OSX #117891

jmroot opened this issue Apr 15, 2024 · 1 comment · Fixed by #118073
Labels
extension-modules C modules in the Modules dir OS-mac type-bug An unexpected behavior, bug, or error

Comments

@jmroot
Copy link
Contributor

jmroot commented Apr 15, 2024

Bug report

Bug description:

Similar to #117886, TARGET_OS_OSX is not defined by older macOS SDKs, and the code doesn't distinguish between it being undefined and being defined to 0.

CPython versions tested on:

3.13

Operating systems tested on:

macOS

Linked PRs

@jmroot jmroot added the type-bug An unexpected behavior, bug, or error label Apr 15, 2024
jmroot added a commit to jmroot/cpython that referenced this issue Apr 15, 2024
This macro is not defined by older macOS SDKs, and the code previously
didn't distinguish between it being undefined and being defined to 0.
@erlend-aasland erlend-aasland added OS-mac extension-modules C modules in the Modules dir labels Apr 15, 2024
@ned-deily
Copy link
Member

Thanks again for the issue. As discussed in the associated PR #117887, the suggested change has been rolled up and merged in PR #118073.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
extension-modules C modules in the Modules dir OS-mac type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants