cpython/Modules/_ctypes
Miss Islington (bot) aa067868ec
[3.11] gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470) (#99638)
gh-99337: Fix compile errors with gcc 12 on macOS (GH-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
(cherry picked from commit cdde29dde9)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2022-11-21 11:22:10 +01:00
..
darwin Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
libffi_osx remove the repeat 'the' (#29455) 2021-11-08 10:19:54 +02:00
_ctypes.c Use static inline function Py_EnterRecursiveCall() (#91988) 2022-05-04 13:30:23 +02:00
_ctypes_test.c bpo-45434: pyport.h no longer includes <stdlib.h> (GH-28914) 2021-10-13 19:25:53 +02:00
_ctypes_test.h Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
callbacks.c [3.11] gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470) (#99638) 2022-11-21 11:22:10 +01:00
callproc.c [3.11] gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470) (#99638) 2022-11-21 11:22:10 +01:00
cfield.c [3.11] gh-95324: Emit a warning if an object doesn't call PyObject_GC_UnTrack during deallocation in debug mode (GH-95325) (#95336) 2022-07-27 16:55:44 +01:00
ctypes.h [3.11] gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470) (#99638) 2022-11-21 11:22:10 +01:00
ctypes_dlfcn.h Remove outdated PEP 291 compatibility requirement comment 2016-05-14 05:55:38 +00:00
malloc_closure.c [3.11] gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470) (#99638) 2022-11-21 11:22:10 +01:00
stgdict.c gh-99275: Fix SystemError in ctypes during __initsubclass__ (GH-99283) 2022-11-13 11:51:26 -08:00