summaryrefslogtreecommitdiff
path: root/numpy/core/bscript
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2014-01-09 10:38:08 +0200
committerPauli Virtanen <pav@iki.fi>2014-01-09 10:44:52 +0200
commit03a2535613934f3f08593d20935e5cc84ce9782c (patch)
treef71c99773581ee15c6649dfc335b52ecb72f3622 /numpy/core/bscript
parent3de3fdab02907194b0cf10ead1c82258ccfe02db (diff)
downloadnumpy-03a2535613934f3f08593d20935e5cc84ce9782c.tar.gz
BLD: add off_t size detection to bento build
Diffstat (limited to 'numpy/core/bscript')
-rw-r--r--numpy/core/bscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/core/bscript b/numpy/core/bscript
index ced37a530..a2222eb66 100644
--- a/numpy/core/bscript
+++ b/numpy/core/bscript
@@ -136,6 +136,11 @@ def type_checks(conf):
NUMPYCONFIG_SYM.append(('SIZEOF_%s' % numpy.build_utils.waf.sanitize_string("Py_intptr_t"),
'%d' % size))
+ size = conf.check_type_size("off_t", header_name=header_name,
+ expected_sizes=[4, 8], features=features)
+ NUMPYCONFIG_SYM.append(('SIZEOF_%s' % numpy.build_utils.waf.sanitize_string("off_t"),
+ '%d' % size))
+
# We check declaration AND type because that's how distutils does it.
try:
conf.check_declaration("PY_LONG_LONG", header_name=header_name,