Fix for isspace() on (some?) win98 installations. Stops crash when clicking on Stamps button.

This commit is contained in:
John Popplewell 2005-12-02 05:27:37 +00:00
parent b84aac0a4c
commit 40e907f6b3

View file

@ -372,6 +372,17 @@ static void win32_perror(const char * const str)
}
#define perror win32_perror
/*
MinGW implementation of isspace() crashes on some Win98 boxes
if c is 'out-of-range'.
*/
static int win32_isspace(int c)
{
return (c == 0x20) || (c >= 0x09 && c <= 0x0D);
}
#define isspace win32_isspace
/*
WIN32 and MINGW don't have strcasestr().
*/