diff options
author | Andreas Schneider <mail@cynapses.org> | 2010-05-12 12:46:50 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2010-05-12 13:11:33 +0200 |
commit | ed268e59485f3249c7c0e44add5c991e4c6769ef (patch) | |
tree | 56db809b9e537f2644cde0d9f245f3db78f92f54 | |
parent | 10b4654ad54da18cbb1e0780b6b0243dcdfb4942 (diff) | |
download | libssh-ed268e59485f3249c7c0e44add5c991e4c6769ef.tar.gz libssh-ed268e59485f3249c7c0e44add5c991e4c6769ef.tar.xz libssh-ed268e59485f3249c7c0e44add5c991e4c6769ef.zip |
Fixed Windows build.
-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 d9bd02e7..826e9692 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 |