summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-11-27 19:02:03 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-11-27 19:02:03 +0000
commitae8a70e2e01722c83d3c977924f14fe3ee8d2d9b (patch)
treeb2e03be6c2371161469ee67630df995c0ea3005c /numpy
parentf962cfd94bd547edac39112657661a704c587907 (diff)
downloadnumpy-ae8a70e2e01722c83d3c977924f14fe3ee8d2d9b.tar.gz
BUG: do not redefine SIZEOF_LONG in config.h if already defined in python headers.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/SConscript7
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)