summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/config.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/distutils/command/config.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/distutils/command/config.py')
-rw-r--r--numpy/distutils/command/config.py5
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