mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
- configure.in xpath.c: applied Bjorn patches for FPE on the
alpha Daniel
This commit is contained in:
8
xpath.c
8
xpath.c
@ -39,6 +39,10 @@
|
||||
#ifdef HAVE_CTYPE_H
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
#if defined(__osf__) && defined(__GNUC__)
|
||||
#include <signal.h>
|
||||
#define FPE_WORKAROUND
|
||||
#endif
|
||||
|
||||
#include <libxml/xmlmemory.h>
|
||||
#include <libxml/tree.h>
|
||||
@ -157,6 +161,10 @@ xmlXPathInit(void) {
|
||||
|
||||
if (initialized) return;
|
||||
|
||||
#ifdef FPE_WORKAROUND
|
||||
signal(SIGFPE, SIG_IGN);
|
||||
#endif
|
||||
|
||||
#ifdef XPATH_USE_DIVISION_SHORTCUTS
|
||||
xmlXPathNAN = 0;
|
||||
xmlXPathNAN /= 0.0;
|
||||
|
Reference in New Issue
Block a user