summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorDiego Russo <diego.russo@arm.com>2024-01-30 23:53:04 (GMT)
committerGitHub <noreply@github.com>2024-01-30 23:53:04 (GMT)
commita06b606462740058b5d52fefdcdcd679d4f40260 (patch)
tree354cb0de5518ba831968728ec4a279145d9eb6c7 /Modules/_ctypes
parentdc4cd2c9ba60e2ee7e534e2f6e93c4c135df23b9 (diff)
downloadcpython-a06b606462740058b5d52fefdcdcd679d4f40260.zip
cpython-a06b606462740058b5d52fefdcdcd679d4f40260.tar.gz
cpython-a06b606462740058b5d52fefdcdcd679d4f40260.tar.bz2
gh-110190: Fix ctypes structs with array on Windows ARM64 (GH-114753)
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r--Modules/_ctypes/stgdict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/stgdict.c b/Modules/_ctypes/stgdict.c
index 2397015..deafa69 100644
--- a/Modules/_ctypes/stgdict.c
+++ b/Modules/_ctypes/stgdict.c
@@ -707,7 +707,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