diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/command/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index e86269138..5170bfcb0 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -131,7 +131,7 @@ int main() # avoid build error because the intrisinc and our 'fake' test # declaration do not match. body.append("#ifdef _MSC_VER") - body.append("#define function(%s)" % func) + body.append("#pragma function(%s)" % func) body.append("#endif") body.append("int main (void) {") if call: @@ -184,7 +184,7 @@ int main() # 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("#pragma function(%s)" % func) body.append("#endif") body.append("int main (void) {") |