diff options
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r-- | numpy/distutils/command/config.py | 6 |
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: |