Commit fbcf86b8 authored by Yang Tse's avatar Yang Tse
Browse files

avoid using funtion isblank() and just use our ISBLANK

macro to provide this functionality on all platforms
parent 5c3f36b4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -553,7 +553,6 @@ AC_CHECK_MEMBER(struct addrinfo.ai_flags,


AC_CHECK_FUNCS( bitncmp \
                isblank \
                if_indextoname,
dnl if found
[],
+0 −4
Original line number Diff line number Diff line
@@ -124,12 +124,8 @@
#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


/*
+0 −1
Original line number Diff line number Diff line
@@ -1770,7 +1770,6 @@ AC_CHECK_FUNCS( strtoll \
                getprotobyname \
                getrlimit \
                setrlimit \
                isblank \
                fork,
dnl if found
[],
+0 −1
Original line number Diff line number Diff line
@@ -84,7 +84,6 @@ Example set of cookies:

#include <stdlib.h>
#include <string.h>
#include <ctype.h>

#define _MPRINTF_REPLACE /* without this on windows OS we get undefined reference to snprintf */
#include <curl/mprintf.h>
+0 −4
Original line number Diff line number Diff line
@@ -131,12 +131,8 @@
#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


/*