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

cleaned up MSVC ifdefs which where spreaded over 3 places.

This commit is contained in:
Guenter Knauf
2010-06-01 19:32:11 +02:00
parent aad74b7fa6
commit 86c935317c
3 changed files with 11 additions and 16 deletions

View File

@@ -73,13 +73,16 @@ typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
#endif
#if defined(LIBSSH2_WIN32) && defined(_MSC_VER) && (_MSC_VER <= 1400)
#if defined(LIBSSH2_WIN32) && defined(_MSC_VER)
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
# ifndef _SSIZE_T_DEFINED
typedef int ssize_t;
# define _SSIZE_T_DEFINED
# if (_MSC_VER <= 1400)
typedef unsigned __int64 libssh2_uint64_t;
typedef __int64 libssh2_int64_t;
typedef unsigned int uint32_t;
#ifndef _SSIZE_T_DEFINED
typedef int ssize_t;
#define _SSIZE_T_DEFINED
# endif
#endif
#else
typedef unsigned long long libssh2_uint64_t;