mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:23:07 +00:00
[LIBXSLT] Update to version 1.1.36. CORE-17766
This version was released after libxml2 2.10.0, but it removes usage of some now-deprecated functions that would break the build.
This commit is contained in:
parent
a620c6f82e
commit
21ab4d93c7
20 changed files with 136 additions and 8171 deletions
78
dll/3rdparty/libxslt/win32config.h
vendored
78
dll/3rdparty/libxslt/win32config.h
vendored
|
@ -9,75 +9,6 @@
|
|||
#ifndef __LIBXSLT_WIN32_CONFIG__
|
||||
#define __LIBXSLT_WIN32_CONFIG__
|
||||
|
||||
#define HAVE_CTYPE_H 1
|
||||
#define HAVE_STDLIB_H 1
|
||||
#define HAVE_STDARG_H 1
|
||||
#define HAVE_MALLOC_H 1
|
||||
#define HAVE_TIME_H 1
|
||||
#define HAVE_LOCALTIME 1
|
||||
#define HAVE_GMTIME 1
|
||||
#define HAVE_TIME 1
|
||||
#define HAVE_MATH_H 1
|
||||
#define HAVE_FCNTL_H 1
|
||||
|
||||
#include <io.h>
|
||||
|
||||
#define HAVE_ISINF
|
||||
#define HAVE_ISNAN
|
||||
|
||||
#include <math.h>
|
||||
#if defined _MSC_VER || defined __MINGW32__
|
||||
/* MS C-runtime has functions which can be used in order to determine if
|
||||
a given floating-point variable contains NaN, (+-)INF. These are
|
||||
preferred, because floating-point technology is considered propriatary
|
||||
by MS and we can assume that their functions know more about their
|
||||
oddities than we do. */
|
||||
#include <float.h>
|
||||
/* Bjorn Reese figured a quite nice construct for isinf() using the
|
||||
_fpclass() function. */
|
||||
#ifndef isinf
|
||||
#define isinf(d) ((_fpclass(d) == _FPCLASS_PINF) ? 1 \
|
||||
: ((_fpclass(d) == _FPCLASS_NINF) ? -1 : 0))
|
||||
#endif
|
||||
/* _isnan(x) returns nonzero if (x == NaN) and zero otherwise. */
|
||||
#ifndef isnan
|
||||
#define isnan(d) (_isnan(d))
|
||||
#endif
|
||||
#else /* _MSC_VER */
|
||||
static int isinf (double d) {
|
||||
int expon = 0;
|
||||
double val = frexp (d, &expon);
|
||||
if (expon == 1025) {
|
||||
if (val == 0.5) {
|
||||
return 1;
|
||||
} else if (val == -0.5) {
|
||||
return -1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
static int isnan (double d) {
|
||||
int expon = 0;
|
||||
double val = frexp (d, &expon);
|
||||
if (expon == 1025) {
|
||||
if (val == 0.5) {
|
||||
return 0;
|
||||
} else if (val == -0.5) {
|
||||
return 0;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
#include <direct.h>
|
||||
|
||||
/* snprintf emulation taken from http://stackoverflow.com/a/8712996/1956010 */
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||
|
||||
|
@ -115,15 +46,6 @@ __inline int c99_snprintf(char *outBuf, size_t size, const char *format, ...)
|
|||
|
||||
#define HAVE_SYS_STAT_H
|
||||
#define HAVE__STAT
|
||||
#define HAVE_STRING_H
|
||||
|
||||
#include <libxml/xmlversion.h>
|
||||
|
||||
#ifndef ATTRIBUTE_UNUSED
|
||||
#define ATTRIBUTE_UNUSED
|
||||
#endif
|
||||
|
||||
#define _WINSOCKAPI_
|
||||
|
||||
#endif /* __LIBXSLT_WIN32_CONFIG__ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue