mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
Handle missing strcasestr() in MinGW
This commit is contained in:
parent
ac3ae13bcd
commit
584f74dbd9
1 changed files with 5 additions and 0 deletions
|
@ -739,6 +739,10 @@
|
|||
#define isinf(x) (isInf(x,1) || isInf(x,-1))
|
||||
#define isnan(x) isNaN(x)
|
||||
#elif defined(_WIN32)
|
||||
#ifdef __MINGW32__
|
||||
#include <shlwapi.h>
|
||||
#define strcasestr StrStrI
|
||||
#else
|
||||
#define snprintf(buf, len, fmt, val) sprintf(buf, fmt, val)
|
||||
#define strcasecmp lstrcmpi
|
||||
#define strncasecmp(s1, s2, n) lstrcmpi(s1, s2)
|
||||
|
@ -747,6 +751,7 @@
|
|||
#define isnan(x) (x!=x)
|
||||
#define isinf(x) (x > DBL_MAX || x < -DBL_MAX)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define sexp_pos_infinity (DBL_MAX*DBL_MAX)
|
||||
|
|
Loading…
Add table
Reference in a new issue