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/distutils/command/config.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/distutils/command/config.py')
-rw-r--r-- | numpy/distutils/command/config.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |