diff options
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 926142b55..b48414c2d 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -161,7 +161,6 @@ def check_math_capabilities(config, moredefs, mathlibs): check_funcs(OPTIONAL_STDFUNCS) - for h in OPTIONAL_HEADERS: if config.check_func("", decl=False, call=False, headers=[h]): moredefs.append((fname2def(h).replace(".", "_"), 1)) @@ -170,6 +169,12 @@ def check_math_capabilities(config, moredefs, mathlibs): if config.check_func(f, decl=False, call=True, call_args=args): 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): + moredefs.append((fname2def(fn), 1)) + # C99 functions: float and long double versions check_funcs(C99_FUNCS_SINGLE) check_funcs(C99_FUNCS_EXTENDED) |