1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-08-08 19:02:07 +03:00

libssh2.h: Fix Error C2371 'ssize_t': redefinition

Closes #331
This commit is contained in:
Zenju
2019-03-20 19:15:17 +01:00
committed by Daniel Stenberg
parent 1b3cbaff51
commit c3d89b9720

View File

@@ -137,8 +137,9 @@ typedef __int64 int64_t;
typedef unsigned __int64 uint64_t; typedef unsigned __int64 uint64_t;
typedef unsigned __int64 libssh2_uint64_t; typedef unsigned __int64 libssh2_uint64_t;
typedef __int64 libssh2_int64_t; typedef __int64 libssh2_int64_t;
#ifndef ssize_t #if (!defined(HAVE_SSIZE_T) && !defined(ssize_t))
typedef SSIZE_T ssize_t; typedef SSIZE_T ssize_t;
#define HAVE_SSIZE_T
#endif #endif
#else #else
#include <stdint.h> #include <stdint.h>