diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-01-31 01:08:26 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-09-18 21:12:49 +0200 |
commit | 4e7b86578e09853e47bdfa36247503fc52f19707 (patch) | |
tree | 14b30163476dd210ac2131534112867b53c52fb8 | |
parent | [3.11] gh-110190: Fix ctypes structs with array on PPCLE64 (GH-112959) (#113167) (diff) | |
download | cpython-4e7b86578e09853e47bdfa36247503fc52f19707.tar.gz cpython-4e7b86578e09853e47bdfa36247503fc52f19707.tar.bz2 cpython-4e7b86578e09853e47bdfa36247503fc52f19707.zip |
gh-110190: Fix ctypes structs with array on Windows ARM64 (GH-114753)
(cherry picked from commit a06b606462740058b5d52fefdcdcd679d4f40260)
Co-authored-by: Diego Russo <diego.russo@arm.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | Modules/_ctypes/stgdict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/stgdict.c b/Modules/_ctypes/stgdict.c index 04b78a84cdd..18bb32aa05c 100644 --- a/Modules/_ctypes/stgdict.c +++ b/Modules/_ctypes/stgdict.c @@ -657,7 +657,7 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct /* * The value of MAX_STRUCT_SIZE depends on the platform Python is running on. */ -#if defined(__aarch64__) || defined(__arm__) +#if defined(__aarch64__) || defined(__arm__) || defined(_M_ARM64) # define MAX_STRUCT_SIZE 32 #elif defined(__powerpc64__) # define MAX_STRUCT_SIZE 64 |