bpo-36071 Add support for Windows ARM32 in ctypes/libffi (GH-12059)

This commit is contained in:
Paul Monson 2019-04-17 18:09:16 -07:00 committed by Steve Dower
parent 264a0b40b0
commit 11efd79076
7 changed files with 31 additions and 8 deletions

View file

@ -427,7 +427,7 @@ extern "C" {
#endif
/* get and set x87 control word for VisualStudio/x86 */
#if defined(_MSC_VER) && defined(_M_IX86) /* x87 only supported in x86 */
#if defined(_MSC_VER) && !defined(_WIN64) && !defined(_M_ARM) /* x87 not supported in 64-bit or ARM */
#define HAVE_PY_SET_53BIT_PRECISION 1
#define _Py_SET_53BIT_PRECISION_HEADER \
unsigned int old_387controlword, new_387controlword, out_387controlword