aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-11-06 09:57:09 +0100
committerAndreas Schneider <mail@cynapses.org>2009-11-06 09:57:09 +0100
commitfa27956daf3ed287fbccaadb39dbeb9863b42902 (patch)
treeb4fb99acef77a286a9a23c4e5ff2dfaf697fe9b0
parentab0d8a3828bfac12c343f29e90207cb8f6ba0a5d (diff)
downloadlibssh-fa27956daf3ed287fbccaadb39dbeb9863b42902.tar.gz
libssh-fa27956daf3ed287fbccaadb39dbeb9863b42902.tar.xz
libssh-fa27956daf3ed287fbccaadb39dbeb9863b42902.zip
Improve MSVC support. Better binary compatibility.
Patch by Patrick Spendrin from KDE.
-rw-r--r--include/libssh/libssh.h2
-rw-r--r--include/libssh/sftp.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 9281e0c8..483b5c35 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -54,7 +54,7 @@
typedef unsigned short uint16_t;
typedef unsigned char uint8_t;
typedef unsigned long long uint64_t;
- typedef uint32_t mode_t;
+ typedef int mode_t;
#else /* _MSC_VER */
#include <unistd.h>
#include <inttypes.h>
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h
index 403d0c57..14b24474 100644
--- a/include/libssh/sftp.h
+++ b/include/libssh/sftp.h
@@ -56,7 +56,7 @@ extern "C" {
#endif /* gid_t */
#ifdef _MSC_VER
#ifndef ssize_t
- typedef _W64 signed int ssize_t;
+ typedef _W64 SSIZE_T ssize_t;
#endif /* ssize_t */
#endif /* _MSC_VER */
#endif /* _WIN32 */