diff options
author | Isuru Fernando <isuruf@gmail.com> | 2021-11-01 11:32:11 -0500 |
---|---|---|
committer | Isuru Fernando <isuruf@gmail.com> | 2021-11-01 11:34:14 -0500 |
commit | 78dc4c6ce7ea6429317e6ab36c936d60da6c1d2c (patch) | |
tree | 4acf7f5e44f5d4ffab41fa6e92b04e348a8779f7 /numpy | |
parent | fa397e9d9a821a178ad620b28bb334b800d2c93d (diff) | |
download | numpy-78dc4c6ce7ea6429317e6ab36c936d60da6c1d2c.tar.gz |
BUG: Fix headers for unviersal2 builds
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/include/numpy/numpyconfig.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/numpyconfig.h b/numpy/core/include/numpy/numpyconfig.h index b2ce66244..1c3686769 100644 --- a/numpy/core/include/numpy/numpyconfig.h +++ b/numpy/core/include/numpy/numpyconfig.h @@ -19,6 +19,19 @@ #define NPY_SIZEOF_LONG 4 #define NPY_SIZEOF_PY_INTPTR_T 4 #endif + + #undef NPY_SIZEOF_LONGDOUBLE + #undef NPY_SIZEOF_COMPLEX_LONGDOUBLE + + #ifdef __x86_64 + #define NPY_SIZEOF_LONGDOUBLE 16 + #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32 + #elif defined(__arm64__) + #define NPY_SIZEOF_LONGDOUBLE 8 + #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16 + #else + #error "unknown architecture" + #endif #endif /** |