From d598cf1854d84e652ec1e35bb726b147fd6b311d Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Sat, 12 Apr 2014 13:55:01 +0200 Subject: BLD: allow strings for check_func declarations makes attribute checks more sane and allows adding nonnull --- numpy/distutils/command/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'numpy/distutils/command/config.py') diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index cadcc1dde..0086e3632 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -307,7 +307,10 @@ int main () self._check_compiler() body = [] if decl: - body.append("int %s (void);" % func) + if type(decl) == str: + body.append(decl) + else: + body.append("int %s (void);" % func) # Handle MSVC intrinsics: force MS compiler to make a function call. # Useful to test for some functions when built with optimization on, to # avoid build error because the intrinsic and our 'fake' test -- cgit v1.2.1