diff options
-rw-r--r-- | numpy/core/SConscript | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript index 47307d89c..2c0bc47d3 100644 --- a/numpy/core/SConscript +++ b/numpy/core/SConscript @@ -87,7 +87,12 @@ def check_type(type, include = None): numpyconfig_sym.append(('SIZEOF_%s' % type.upper(), 0)) for type in ('short', 'int', 'long'): - check_type(type) + # SIZEOF_LONG defined on darwin + if type == "long": + if not config.CheckDeclaration("SIZEOF_LONG", includes="#include <Python.h>"): + check_type(type) + else: + check_type(type) for type in ('float', 'double', 'long double'): sz = config.CheckTypeSize(type) |