Ignore:
Timestamp:
Jan 11, 2009, 5:02:04 PM (13 years ago)
Author:
charles
Message:

(trunk libT) win32 portability patch from Alexey

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.h

    r7652 r7663  
    4343
    4444#ifdef WIN32
    45  #define ECONNREFUSED WSAECONNREFUSED
    46  #define ECONNRESET   WSAECONNRESET
    47  #define EHOSTUNREACH WSAEHOSTUNREACH
    48  #define EINPROGRESS  WSAEINPROGRESS
    49  #define ENOTCONN     WSAENOTCONN
    50  #define EWOULDBLOCK  WSAEWOULDBLOCK
    51  #define sockerrno WSAGetLastError( )
     45 #define ECONNREFUSED            WSAECONNREFUSED
     46 #define ECONNRESET              WSAECONNRESET
     47 #define EHOSTUNREACH            WSAEHOSTUNREACH
     48 #define EINPROGRESS             WSAEINPROGRESS
     49 #define ENOTCONN                WSAENOTCONN
     50 #define EWOULDBLOCK             WSAEWOULDBLOCK
     51 #define EAFNOSUPPORT            WSAEAFNOSUPPORT
     52 #define ENETUNREACH             WSAENETUNREACH
     53 #define sockerrno               WSAGetLastError( )
    5254#else
    5355 #include <errno.h>
     
    8991void tr_suspectAddress( const tr_address * a, const char * source );
    9092
    91 static inline tr_bool tr_isAddress( const tr_address * a ) { return ( a != NULL ) && ( a->type==TR_AF_INET || a->type==TR_AF_INET6 ); }
     93static TR_INLINE tr_bool tr_isAddress( const tr_address * a ) { return ( a != NULL ) && ( a->type==TR_AF_INET || a->type==TR_AF_INET6 ); }
    9294
    9395typedef struct tr_net_af_support
Note: See TracChangeset for help on using the changeset viewer.