File tree 2 files changed +12
-0
lines changed 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 22
22
23
23
#undef NPY_SIZEOF_LONGDOUBLE
24
24
#undef NPY_SIZEOF_COMPLEX_LONGDOUBLE
25
+ #ifdef HAVE_LDOUBLE_IEEE_DOUBLE_LE
26
+ #undef HAVE_LDOUBLE_IEEE_DOUBLE_LE
27
+ #endif
28
+ #ifdef HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE
29
+ #undef HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE
30
+ #endif
25
31
26
32
#if defined(__arm64__ )
27
33
#define NPY_SIZEOF_LONGDOUBLE 8
28
34
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16
35
+ #define HAVE_LDOUBLE_IEEE_DOUBLE_LE 1
29
36
#elif defined(__x86_64 )
30
37
#define NPY_SIZEOF_LONGDOUBLE 16
31
38
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32
39
+ #define HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE 1
32
40
#elif defined (__i386 )
33
41
#define NPY_SIZEOF_LONGDOUBLE 12
34
42
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 24
Original file line number Diff line number Diff line change @@ -530,6 +530,10 @@ def generate_config_h(ext, build_dir):
530
530
531
531
# Generate the config.h file from moredefs
532
532
with open (target , 'w' ) as target_f :
533
+ if sys .platform == 'darwin' :
534
+ target_f .write (
535
+ "/* may be overridden by numpyconfig.h on darwin */\n "
536
+ )
533
537
for d in moredefs :
534
538
if isinstance (d , str ):
535
539
target_f .write ('#define %s\n ' % (d ))
You can’t perform that action at this time.
0 commit comments