mirror of
https://github.com/GNOME/libxml2.git
synced 2025-02-17 18:19:32 +08:00
applied patch from Magnus Henoch
This commit is contained in:
parent
5aad832aa3
commit
1932b6cd28
@ -48,6 +48,7 @@
|
||||
#define isnan(d) (_isnan(d))
|
||||
#endif
|
||||
#else /* _MSC_VER */
|
||||
#ifndef isinf
|
||||
static int isinf (double d) {
|
||||
int expon = 0;
|
||||
double val = frexp (d, &expon);
|
||||
@ -63,6 +64,8 @@ static int isinf (double d) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifndef isnan
|
||||
static int isnan (double d) {
|
||||
int expon = 0;
|
||||
double val = frexp (d, &expon);
|
||||
@ -78,6 +81,7 @@ static int isnan (double d) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
|
Loading…
Reference in New Issue
Block a user