diff options
Diffstat (limited to 'win32/win32.h')
-rw-r--r-- | win32/win32.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/win32/win32.h b/win32/win32.h index 41c3a40a2f..b0d03d0902 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -209,10 +209,8 @@ extern pid_t waitpid (pid_t, int *, int); extern int do_spawn(char *); extern int kill(int, int); extern pid_t rb_w32_getpid(void); -#ifndef __BORLANDC__ -extern int isinf(double); -extern int isnan(double); -#else + +#ifdef __BORLANDC__ #include <float.h> #ifndef isinf #define isinf !_finite @@ -246,6 +244,9 @@ extern int isnan(double); #define S_ISBLK(m) (((unsigned short)(m) & S_IFMT) == S_IFBLK) #define S_ISCHR(m) (((unsigned short)(m) & S_IFMT) == S_IFCHR) #define S_ISREG(m) (((unsigned short)(m) & S_IFMT) == S_IFREG) +#elif !defined __MINGW32__ || defined __NO_ISOCEXT +extern int isinf(double); +extern int isnan(double); #endif #if !defined S_IRUSR && !defined __MINGW32__ |