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

Skip to content

Commit 6584cd2

Browse files
committed
define -> pragma, stupid mistake.
1 parent 65cb676 commit 6584cd2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

numpy/distutils/command/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def check_func(self, func,
131131
# avoid build error because the intrisinc and our 'fake' test
132132
# declaration do not match.
133133
body.append("#ifdef _MSC_VER")
134-
body.append("#define function(%s)" % func)
134+
body.append("#pragma function(%s)" % func)
135135
body.append("#endif")
136136
body.append("int main (void) {")
137137
if call:
@@ -184,7 +184,7 @@ def check_funcs_once(self, funcs,
184184
# Handle MS intrinsics. See check_func for more info.
185185
body.append("#ifdef _MSC_VER")
186186
for func in funcs:
187-
body.append("#define function(%s)" % func)
187+
body.append("#pragma function(%s)" % func)
188188
body.append("#endif")
189189

190190
body.append("int main (void) {")

0 commit comments

Comments
 (0)