aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-05-12 12:46:50 +0200
committerAndreas Schneider <mail@cynapses.org>2010-05-12 12:46:50 +0200
commitfc508f9494080035626c38e81216314f3137de0a (patch)
tree17f14b179662e210207345f79c28db58cc98f2dd /include/libssh
parent3573bd4d870f08513b81984de600ba742d9734a7 (diff)
downloadlibssh-fc508f9494080035626c38e81216314f3137de0a.tar.gz
libssh-fc508f9494080035626c38e81216314f3137de0a.tar.xz
libssh-fc508f9494080035626c38e81216314f3137de0a.zip
Fixed Windows build.
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/priv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 6ada1b5..a5d6e41 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -34,16 +34,17 @@
#ifdef _MSC_VER
-#include <varargs.h>
-
/** Imitate define of inttypes.h */
#define PRIdS "Id"
+
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#define strtoull _strtoui64
#define isblank(ch) ((ch) == ' ' || (ch) == '\t' || (ch) == '\n' || (ch) == '\r')
+#if _MSC_VER >= 1400
#define strdup _strdup
+#endif
#define usleep(X) Sleep(((X)+1000)/1000)
#undef strtok_r