Commit 87ee9140 authored by Daniel Veillard's avatar Daniel Veillard

- xpointer.c include/win32config.h win32/libxml2/libxml2.def.src

  libxml.h : Yon Derek provided a set of changes to compile from
  CVS on Windows/MSC
Daniel
parent 0e4cd17b
Thu Jun 28 14:51:44 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xpointer.c include/win32config.h win32/libxml2/libxml2.def.src
libxml.h : Yon Derek provided a set of changes to compile from
CVS on Windows/MSC
Thu Jun 28 14:11:28 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* parser.c: fixed UTF8 BOM support in push mode
......
......@@ -99,7 +99,7 @@ static int isnan (double d) {
/* Microsoft's C runtime names all non-ANSI functions with a leading
underscore. Since functionality is still the same, they can be used. */
#ifdef _MSC_VER
#include <libxml/xmlversion.h>
#include <libxml/xmlwin32version.h>
#ifndef WITH_TRIO
#define snprintf _snprintf
#define vsnprintf _vsnprintf
......
......@@ -13,9 +13,8 @@
#include "win32config.h"
#else
#include "config.h"
#endif
#include <libxml/xmlversion.h>
#endif
#ifdef WITHOUT_TRIO
#include <stdio.h>
......
......@@ -18,7 +18,7 @@
*/
#define LIBXML2_COMPILING_MSCCDEF
#include "../../include/libxml/xmlversion.h"
#include "../../include/libxml/xmlwin32version.h"
LIBRARY libxml2
EXPORTS
......
......@@ -2726,13 +2726,13 @@ xmlXPtrStringRangeFunction(xmlXPathParserContextPtr ctxt, int nargs) {
CHECK_TYPE(XPATH_NUMBER);
number = valuePop(ctxt);
if (number != NULL)
num = number->floatval;
num = (int) number->floatval;
}
if (nargs >= 3) {
CHECK_TYPE(XPATH_NUMBER);
position = valuePop(ctxt);
if (position != NULL)
pos = position->floatval;
pos = (int) position->floatval;
}
CHECK_TYPE(XPATH_STRING);
string = valuePop(ctxt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment