mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +03:00
- configure.in xpath.c: applied Bjorn patches for FPE on the
alpha Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Sat Apr 28 19:00:39 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
|
* configure.in xpath.c: applied Bjorn patches for FPE on the
|
||||||
|
alpha
|
||||||
|
|
||||||
Sat Apr 28 18:54:28 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
Sat Apr 28 18:54:28 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
* tree.[ch] xmlIO.h: applied patch from Joe McAlerney to add
|
* tree.[ch] xmlIO.h: applied patch from Joe McAlerney to add
|
||||||
|
@ -157,14 +157,18 @@ dnl
|
|||||||
XML_CFLAGS=""
|
XML_CFLAGS=""
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Workaround for HP native compiler
|
dnl Workaround for native compilers
|
||||||
dnl http://bugs.gnome.org/db/31/3163.html
|
dnl HP : http://bugs.gnome.org/db/31/3163.html
|
||||||
|
dnl DEC : Enable NaN/Inf
|
||||||
dnl
|
dnl
|
||||||
if test "${GCC}" != "yes" ; then
|
if test "${GCC}" != "yes" ; then
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-*-hpux* )
|
*-*-hpux* )
|
||||||
CFLAGS="${CFLAGS} -Wp,-H30000"
|
CFLAGS="${CFLAGS} -Wp,-H30000"
|
||||||
;;
|
;;
|
||||||
|
*-dec-osf* )
|
||||||
|
CFLAGS="${CFLAGS} -ieee"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
CFLAGS="${CFLAGS} -Wall"
|
CFLAGS="${CFLAGS} -Wall"
|
||||||
|
8
xpath.c
8
xpath.c
@ -39,6 +39,10 @@
|
|||||||
#ifdef HAVE_CTYPE_H
|
#ifdef HAVE_CTYPE_H
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__osf__) && defined(__GNUC__)
|
||||||
|
#include <signal.h>
|
||||||
|
#define FPE_WORKAROUND
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <libxml/xmlmemory.h>
|
#include <libxml/xmlmemory.h>
|
||||||
#include <libxml/tree.h>
|
#include <libxml/tree.h>
|
||||||
@ -157,6 +161,10 @@ xmlXPathInit(void) {
|
|||||||
|
|
||||||
if (initialized) return;
|
if (initialized) return;
|
||||||
|
|
||||||
|
#ifdef FPE_WORKAROUND
|
||||||
|
signal(SIGFPE, SIG_IGN);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef XPATH_USE_DIVISION_SHORTCUTS
|
#ifdef XPATH_USE_DIVISION_SHORTCUTS
|
||||||
xmlXPathNAN = 0;
|
xmlXPathNAN = 0;
|
||||||
xmlXPathNAN /= 0.0;
|
xmlXPathNAN /= 0.0;
|
||||||
|
Reference in New Issue
Block a user