summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorZachary Ware <zach@python.org>2022-12-28 18:06:58 (GMT)
committerGitHub <noreply@github.com>2022-12-28 18:06:58 (GMT)
commitfd4b55ff17b1525d36f1e81762fca6f1a7bc59c5 (patch)
tree1505b38f22dffab2da530553ddee79a371949625 /Modules
parent5e1adb4f8861f2a5969952d24c8ad0ce8ec0a8ec (diff)
downloadcpython-fd4b55ff17b1525d36f1e81762fca6f1a7bc59c5.zip
cpython-fd4b55ff17b1525d36f1e81762fca6f1a7bc59c5.tar.gz
cpython-fd4b55ff17b1525d36f1e81762fca6f1a7bc59c5.tar.bz2
gh-100540: Remove unnecessary '-DMACOSX' for ctypes on macOS (GH-100542)
The define was only used to protect a `#pragma clang diagnostic` setting, which is already better guarded by `__clang__` anwyay.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/callbacks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/callbacks.c b/Modules/_ctypes/callbacks.c
index 459632b..f688088 100644
--- a/Modules/_ctypes/callbacks.c
+++ b/Modules/_ctypes/callbacks.c
@@ -426,7 +426,7 @@ CThunkObject *_ctypes_alloc_callback(PyObject *callable,
PyErr_Format(PyExc_NotImplementedError, "ffi_prep_closure_loc() is missing");
goto error;
#else
-#if defined(__clang__) || defined(MACOSX)
+#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
@@ -436,7 +436,7 @@ CThunkObject *_ctypes_alloc_callback(PyObject *callable,
#endif
result = ffi_prep_closure(p->pcl_write, &p->cif, closure_fcn, p);
-#if defined(__clang__) || defined(MACOSX)
+#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))