Fix for isspace() on (some?) win98 installations. Stops crash when clicking on Stamps button.
This commit is contained in:
parent
b84aac0a4c
commit
40e907f6b3
1 changed files with 11 additions and 0 deletions
|
|
@ -372,6 +372,17 @@ static void win32_perror(const char * const str)
|
||||||
}
|
}
|
||||||
#define perror win32_perror
|
#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().
|
WIN32 and MINGW don't have strcasestr().
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue