diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-04-12 13:55:01 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-04-23 22:46:47 +0200 |
commit | d598cf1854d84e652ec1e35bb726b147fd6b311d (patch) | |
tree | d15227116dd306694c826b384da9def4c9de8dd2 /numpy/core/setup.py | |
parent | d0b3f8f4213ee2d285be7d410a0cd7a1a601a7bd (diff) | |
download | numpy-d598cf1854d84e652ec1e35bb726b147fd6b311d.tar.gz |
BLD: allow strings for check_func declarations
makes attribute checks more sane and allows adding nonnull
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index d48368ca1..c28de7c11 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -176,9 +176,8 @@ def check_math_capabilities(config, moredefs, mathlibs): moredefs.append((fname2def(f), 1)) for dec, fn in OPTIONAL_GCC_ATTRIBUTES: - if config.check_funcs_once([fn], - decl=dict((('%s %s' % (dec, fn), True),)), - call=False): + if config.check_func(fn, decl='int %s %s(void *);' % (dec, fn), + call=False): moredefs.append((fname2def(fn), 1)) # C99 functions: float and long double versions |