[Python-checkins] python/dist/src/PC pyconfig.h,1.29,1.30
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Thu Sep 23 21:11:34 CEST 2004
Update of /cvsroot/python/python/dist/src/PC
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21226/PC
Modified Files:
pyconfig.h
Log Message:
Introduced a Py_IS_NAN macro, which probably works on the major platforms
today. pyconfig.h can override it if not, and can also override
Py_IS_INFINITY now. Py_IS_NAN and Py_IS_INFINITY are overridden now
for Microsoft compilers, using efficient MS-specific spellings.
Index: pyconfig.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/pyconfig.h,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- pyconfig.h 3 Aug 2004 08:52:46 -0000 1.29
+++ pyconfig.h 23 Sep 2004 19:11:32 -0000 1.30
@@ -118,6 +118,10 @@
typedef int pid_t;
#define hypot _hypot
+#include <float.h>
+#define Py_IS_NAN _isnan
+#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
+
#endif /* _MSC_VER */
/* define some ANSI types that are not defined in earlier Win headers */
More information about the Python-checkins
mailing list