libssh2_priv msvc: Removed redundant definition of inline keyword

Initially reported by Bob Kast as "Remove redundant 'inline' define".
Thanks a lot.
This commit is contained in:
Marc Hoersken 2014-05-17 23:47:20 +02:00
parent a58b0dacb4
commit ee547fe90d

View File

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