Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65cb676

Browse files
committed
Handle msvc intrisincs in check_funcs_once.
1 parent 1a55527 commit 65cb676

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

numpy/distutils/command/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ def check_funcs_once(self, funcs,
181181
if v:
182182
body.append("int %s ();" % f)
183183

184+
# Handle MS intrinsics. See check_func for more info.
185+
body.append("#ifdef _MSC_VER")
186+
for func in funcs:
187+
body.append("#define function(%s)" % func)
188+
body.append("#endif")
189+
184190
body.append("int main (void) {")
185191
if call:
186192
for f in funcs:

0 commit comments

Comments
 (0)