mirror of
https://github.com/curl/curl.git
synced 2026-08-24 18:23:33 +03:00
check for isblank() at configuration stage. If not available
provide a suitable replacement for use in our ISBLANK macro
This commit is contained in:
parent
0db485a448
commit
be71ccbce3
4 changed files with 16 additions and 2 deletions
|
|
@ -122,7 +122,6 @@
|
|||
*/
|
||||
|
||||
#define ISSPACE(x) (isspace((int) ((unsigned char)x)))
|
||||
#define ISBLANK(x) (isblank((int) ((unsigned char)x)))
|
||||
#define ISDIGIT(x) (isdigit((int) ((unsigned char)x)))
|
||||
#define ISALNUM(x) (isalnum((int) ((unsigned char)x)))
|
||||
#define ISXDIGIT(x) (isxdigit((int) ((unsigned char)x)))
|
||||
|
|
@ -132,6 +131,13 @@
|
|||
#define ISUPPER(x) (isupper((int) ((unsigned char)x)))
|
||||
#define ISLOWER(x) (islower((int) ((unsigned char)x)))
|
||||
|
||||
#ifdef HAVE_ISBLANK
|
||||
#define ISBLANK(x) (isblank((int) ((unsigned char)x)))
|
||||
#else
|
||||
#define ISBLANK(x) (int)((((unsigned char)x) == ' ') || \
|
||||
(((unsigned char)x) == '\t'))
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Typedef to 'int' if sig_atomic_t is not an available 'typedefed' type.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue