diff options
author | Andreas Schneider <mail@cynapses.org> | 2010-05-12 12:46:50 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2010-05-12 12:46:50 +0200 |
commit | fc508f9494080035626c38e81216314f3137de0a (patch) | |
tree | 17f14b179662e210207345f79c28db58cc98f2dd /include | |
parent | 3573bd4d870f08513b81984de600ba742d9734a7 (diff) | |
download | libssh-fc508f9494080035626c38e81216314f3137de0a.tar.gz libssh-fc508f9494080035626c38e81216314f3137de0a.tar.xz libssh-fc508f9494080035626c38e81216314f3137de0a.zip |
Fixed Windows build.
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/priv.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 6ada1b5f..a5d6e418 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 |