[Numpy-svn] r6184 - branches/numpy-mingw-w64/numpy/core

numpy-svn@scip... numpy-svn@scip...
Sun Dec 21 01:46:33 CST 2008


Author: cdavid
Date: 2008-12-21 01:46:28 -0600 (Sun, 21 Dec 2008)
New Revision: 6184

Modified:
   branches/numpy-mingw-w64/numpy/core/setup.py
Log:
Hardcode size of long double, because it is broken with mingw.

Modified: branches/numpy-mingw-w64/numpy/core/setup.py
===================================================================
--- branches/numpy-mingw-w64/numpy/core/setup.py	2008-12-21 07:08:03 UTC (rev 6183)
+++ branches/numpy-mingw-w64/numpy/core/setup.py	2008-12-21 07:46:28 UTC (rev 6184)
@@ -457,7 +457,7 @@
                   ('SIZEOF_LONG', 'long'),
                   ('SIZEOF_FLOAT', 'float'),
                   ('SIZEOF_DOUBLE', 'double'),
-                  ('SIZEOF_LONG_DOUBLE', 'long double'),
+                  #('SIZEOF_LONG_DOUBLE', 'long double'),
                   ('SIZEOF_PY_INTPTR_T', 'Py_intptr_t'),
                   ]:
         testcode.append(c_size_test % {'sz' : sz, 'type' : t})
@@ -473,6 +473,7 @@
 #else
         fprintf(fp, "/* PY_LONG_LONG not defined */\n");
 #endif
+        fprintf(fp, "#define SIZEOF_LONG_DOUBLE 8\n");
 #ifndef CHAR_BIT
           {
              unsigned char var = 2;



More information about the Numpy-svn mailing list