[Lxml-checkins] r39483 - lxml/trunk/src/lxml
scoder at codespeak.net
scoder at codespeak.net
Tue Feb 27 09:31:26 CET 2007
Author: scoder
Date: Tue Feb 27 09:31:22 2007
New Revision: 39483
Modified:
lxml/trunk/src/lxml/etree_defs.h
Log:
work around for missing _ftol2 in MSDEV 6.0
Modified: lxml/trunk/src/lxml/etree_defs.h
==============================================================================
--- lxml/trunk/src/lxml/etree_defs.h (original)
+++ lxml/trunk/src/lxml/etree_defs.h Tue Feb 27 09:31:22 2007
@@ -47,6 +47,12 @@
#define HTML_PARSE_RECOVER XML_PARSE_RECOVER
#endif
+/* work around MSDEV 6.0 */
+#if (_MSC_VER == 1200) && (WINVER < 0x0500)
+extern "C" long _ftol( double ); //defined by VC6 C libs
+extern "C" long _ftol2( double dblSource ) { return _ftol( dblSource ); }
+#endif
+
/* Redefinition of some Python builtins as C functions */
#define isinstance(o,c) PyObject_IsInstance(o,c)
#define issubclass(c,csuper) PyObject_IsSubclass(c,csuper)
More information about the lxml-checkins
mailing list