summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-12-21 07:46:28 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-12-21 07:46:28 +0000
commit745cfe4c60a59c01a8c2fd6ef68a8ca87f2180f5 (patch)
treee737cf4ba4c5d98f9af4a867f5814c3169b298e1 /numpy
parent44c808f02c55d6a18eaf2cc9ed2e3956e2ac5611 (diff)
downloadnumpy-745cfe4c60a59c01a8c2fd6ef68a8ca87f2180f5.tar.gz
Hardcode size of long double, because it is broken with mingw.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 28e1eded3..4c590eea1 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -457,7 +457,7 @@ int main(int argc, char **argv)
('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 @@ int main(int argc, char **argv)
#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;