1
1

libssh2_priv msvc: Removed redundant definition of inline keyword

Initially reported by Bob Kast as "Remove redundant 'inline' define".
Thanks a lot.
Этот коммит содержится в:
Marc Hoersken 2014-05-17 23:47:20 +02:00
родитель a58b0dacb4
Коммит ee547fe90d

Просмотреть файл

@ -108,6 +108,11 @@
#define TRUE 1 #define TRUE 1
#endif #endif
#ifdef _MSC_VER
/* "inline" keyword is valid only with C++ engine! */
#define inline __inline
#endif
/* Provide iovec / writev on WIN32 platform. */ /* Provide iovec / writev on WIN32 platform. */
#ifdef WIN32 #ifdef WIN32
@ -116,8 +121,6 @@ struct iovec {
void * iov_base; void * iov_base;
}; };
#define inline __inline
static inline int writev(int sock, struct iovec *iov, int nvecs) static inline int writev(int sock, struct iovec *iov, int nvecs)
{ {
DWORD ret; DWORD ret;
@ -136,11 +139,6 @@ static inline int writev(int sock, struct iovec *iov, int nvecs)
#include <winsock2.h> #include <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
#ifdef _MSC_VER
/* "inline" keyword is valid only with C++ engine! */
#define inline __inline
#endif
#endif #endif
/* RFC4253 section 6.1 Maximum Packet Length says: /* RFC4253 section 6.1 Maximum Packet Length says: