summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-09-20 13:45:20 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-09-20 16:27:08 -0400
commit3fd158eacc9126db15ab0358a65d4c6ba00d15e8 (patch)
tree3c9f5349977960fe785fbb633f5170ffce682edb /win32/win32.h
parent031c3a38999d6e1e63aef26d19b11392d8fee4f4 (diff)
downloadperl-3fd158eacc9126db15ab0358a65d4c6ba00d15e8.tar.gz
On VC6 (broken NaN compare) redefine Perl_isinf.
So that it works with NaN, by not using the comparison version of Perl_isinf. A little messy but since win32/win32.h is included so late in perl.h, cannot be done earlier with the other Perl_isinf logic. Partially reverts 128eeacb.
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 8db0303965..8587ac8f34 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -255,7 +255,8 @@ typedef unsigned short mode_t;
#define vsnprintf _vsnprintf
#ifdef USING_MSVC6
-/* VC6 has broken NaN semantics: NaN == NaN returns true instead of false */
+/* VC6 has broken NaN semantics: NaN == NaN returns true instead of false,
+ * and for example NaN < IV_MIN. */
#define NAN_COMPARE_BROKEN 1
#endif