summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-05-01 08:02:52 -0600
committerCharles Harris <charlesr.harris@gmail.com>2014-05-01 08:02:52 -0600
commit63df267fcd5acaf7fc1408dbfef9cc7f53929530 (patch)
treec02de320bdc57f77cff8878e5dadc4953a54dd07 /numpy/core/setup.py
parent0c9f285f38ea4d143c5e79badd0d36cb808242a6 (diff)
parent64af3fdd0fac08e01877a56faff5f3c6d4ac3a1b (diff)
downloadnumpy-63df267fcd5acaf7fc1408dbfef9cc7f53929530.tar.gz
Merge pull request #4637 from juliantaylor/api-annotate
annotate reference semantics of c-api
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py5
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