[Numpy-svn] r5856 - branches/clean_math_config/numpy/distutils/command

numpy-svn@scip... numpy-svn@scip...
Sun Sep 21 06:39:35 CDT 2008


Author: cdavid
Date: 2008-09-21 06:39:27 -0500 (Sun, 21 Sep 2008)
New Revision: 5856

Modified:
   branches/clean_math_config/numpy/distutils/command/config.py
Log:
Handle msvc intrisincs in check_funcs_once.

Modified: branches/clean_math_config/numpy/distutils/command/config.py
===================================================================
--- branches/clean_math_config/numpy/distutils/command/config.py	2008-09-21 11:39:08 UTC (rev 5855)
+++ branches/clean_math_config/numpy/distutils/command/config.py	2008-09-21 11:39:27 UTC (rev 5856)
@@ -181,6 +181,12 @@
                 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:



More information about the Numpy-svn mailing list