summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-05-22 11:29:41 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-05-22 11:29:41 (GMT)
commit31a4262d3dab7eea8ad0ab0a54ea386c924b5c94 (patch)
treeaaeac4c49960ecbc0e0f0ab0a60df0331c387484
parenta43190bc789bebfef15fb2b82f94a19a6bc80000 (diff)
downloadcpython-31a4262d3dab7eea8ad0ab0a54ea386c924b5c94.zip
cpython-31a4262d3dab7eea8ad0ab0a54ea386c924b5c94.tar.gz
cpython-31a4262d3dab7eea8ad0ab0a54ea386c924b5c94.tar.bz2
Define SIZEOF_{DOUBLE,FLOAT} on Windows. Else
Michael Hudson's nice gimmicks for IEEE special values (infinities, NaNs) don't work.
-rw-r--r--PC/pyconfig.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 1e738a1..a9c1613 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -318,6 +318,8 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
#define SIZEOF_INT 4
#define SIZEOF_LONG 4
#define SIZEOF_LONG_LONG 8
+#define SIZEOF_DOUBLE 8
+#define SIZEOF_FLOAT 4
/* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200.
Microsoft eMbedded Visual C++ 4.0 has a version number of 1201 and doesn't
@@ -330,7 +332,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
#else
/* VC6 & eVC4 don't support the C99 LL suffix for 64-bit integer literals */
#define Py_LL(x) x##I64
-#endif /* _MSC_VER > 1200 */
+#endif /* _MSC_VER > 1200 */
#endif /* _MSC_VER */
#endif