]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99337: Fix compile errors with gcc 12 on macOS (#99470)
authorRonald Oussoren <ronaldoussoren@mac.com>
Mon, 21 Nov 2022 09:50:20 +0000 (10:50 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Nov 2022 09:50:20 +0000 (10:50 +0100)
commitcdde29dde90947df9bac39c1d19479914fb3db09
treebed26cebb9afdf979bf632b27f3088742554521a
parent6d8da238ccdf946dc90e20821652d8caa25b76ba
gh-99337: Fix compile errors with gcc 12 on macOS (#99470)

Fix a number of compile errors with GCC-12 on macOS:

1. In pylifecycle.c the compile rejects _Pragma within a declaration
2. posixmodule.c was missing a number of ..._RUNTIME macros for non-clang on macOS
3. _ctypes assumed that __builtin_available is always present on macOS
Misc/NEWS.d/next/Build/2022-11-15-08-40-22.gh-issue-99337.5LoQDE.rst [new file with mode: 0644]
Modules/_ctypes/callbacks.c
Modules/_ctypes/callproc.c
Modules/_ctypes/ctypes.h
Modules/_ctypes/malloc_closure.c
Modules/posixmodule.c
Python/pylifecycle.c