aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-10-30 17:30:07 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-10-30 17:30:07 +0100
commitcfea3813071755c8a17985d8bae7447b30c95790 (patch)
tree3d6e5c35dc8fc64919715e44c096f1a009074efd /include
parent099b914fd9e3859d170a4f1bdb21ef0ba994b6f8 (diff)
downloadlibssh-cfea3813071755c8a17985d8bae7447b30c95790.tar.gz
libssh-cfea3813071755c8a17985d8bae7447b30c95790.tar.xz
libssh-cfea3813071755c8a17985d8bae7447b30c95790.zip
cmake: Check for isblank().
Diffstat (limited to 'include')
-rw-r--r--include/libssh/priv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 43f749bb..364f8e97 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -67,7 +67,9 @@
# define strcasecmp _stricmp
# define strncasecmp _strnicmp
-# define isblank(ch) ((ch) == ' ' || (ch) == '\t' || (ch) == '\n' || (ch) == '\r')
+# if ! defined(HAVE_ISBLANK)
+# define isblank(ch) ((ch) == ' ' || (ch) == '\t' || (ch) == '\n' || (ch) == '\r')
+# endif
# define usleep(X) Sleep(((X)+1000)/1000)