mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
Improve MSVC support. Better binary compatibility.
Patch by Patrick Spendrin from KDE.
This commit is contained in:
@@ -54,7 +54,7 @@
|
|||||||
typedef unsigned short uint16_t;
|
typedef unsigned short uint16_t;
|
||||||
typedef unsigned char uint8_t;
|
typedef unsigned char uint8_t;
|
||||||
typedef unsigned long long uint64_t;
|
typedef unsigned long long uint64_t;
|
||||||
typedef uint32_t mode_t;
|
typedef int mode_t;
|
||||||
#else /* _MSC_VER */
|
#else /* _MSC_VER */
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ extern "C" {
|
|||||||
#endif /* gid_t */
|
#endif /* gid_t */
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#ifndef ssize_t
|
#ifndef ssize_t
|
||||||
typedef _W64 signed int ssize_t;
|
typedef _W64 SSIZE_T ssize_t;
|
||||||
#endif /* ssize_t */
|
#endif /* ssize_t */
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|||||||
Reference in New Issue
Block a user