summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/config.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-09-21 11:39:27 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-09-21 11:39:27 +0000
commit65cb6763a12d0a0697f2f2008188a706e3c7c12a (patch)
tree1c430d6b77a1ee1d12bfb3761c17e4412e8ed0dc /numpy/distutils/command/config.py
parent1a555279787f77ecd8b26b30ad7edb36d73d5374 (diff)
downloadnumpy-65cb6763a12d0a0697f2f2008188a706e3c7c12a.tar.gz
Handle msvc intrisincs in check_funcs_once.
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r--numpy/distutils/command/config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py
index b88741e88..e86269138 100644
--- a/numpy/distutils/command/config.py
+++ b/numpy/distutils/command/config.py
@@ -181,6 +181,12 @@ int main()
if v:
body.append("int %s ();" % f)
+ # Handle MS intrinsics. See check_func for more info.
+ body.append("#ifdef _MSC_VER")
+ for func in funcs:
+ body.append("#define function(%s)" % func)
+ body.append("#endif")
+
body.append("int main (void) {")
if call:
for f in funcs: