]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Resolve isnan and isfnf for Win32
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 3 May 2001 02:24:59 +0000 (02:24 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 3 May 2001 02:24:59 +0000 (02:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@88979 13f79535-47bb-0310-9956-ffa450edef68

src/ap/ap_snprintf.c
src/os/win32/os.h

index 3af535c5b78b6c3fde6b1bdbd2f87daeb4e7849b..fdfefd6df01dce3bd76d82ef0249f1ce83033942 100644 (file)
@@ -73,6 +73,9 @@
 #include <string.h>
 #include <stdlib.h>
 #include <math.h>
+#ifdef WIN32
+#include <float.h>
+#endif
 
 typedef enum {
     NO = 0, YES = 1
index 0aa3a4294929268afbe9d6e67d77c39239abd9c2..1de016a5c4aa7ea9180deede9d1c1655bef7496e 100755 (executable)
@@ -207,6 +207,10 @@ API_EXPORT(const char *) ap_os_dso_error(void);
 /* Other ap_os_ routines not used by this platform */
 #define ap_os_kill(pid, sig)                kill(pid, sig)
 
+/* Some Win32isms */
+#define isnan(n) _isnan(n)
+#define isinf(n) (!_finite(n))
+
 #endif /* WIN32 */
 
 #endif   /* ! APACHE_OS_H */