Ignore:
Timestamp:
Sep 27, 2008 9:35:34 AM (16 years ago)
Author:
bennylp
Message:

Fixed ticket #644 and #648: incorrect muticast related socket constant names, missing ws2tcpip.h include causing build error on Mingw, and error building on Visual Studio 6 due to PJ_SOCK_HAS_GETADDRINFO being declared accidentally.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/compat/socket.h

    r2283 r2327  
    5454 * it has built-in IPv6 support. 
    5555 */ 
    56 #if defined(_MSC_VER) 
     56#if defined(_MSC_VER) && defined(PJ_HAS_IPV6) && PJ_HAS_IPV6!=0 
    5757#   ifndef s_addr 
    5858#       define s_addr  S_un.S_addr 
     
    6060 
    6161#   include <ws2tcpip.h> 
    62  
    63 #   if !defined(IPPROTO_IPV6) && defined(PJ_HAS_IPV6) && PJ_HAS_IPV6!=0 
     62#   define PJ_WS2TCPIP_H_INCLUDED 
     63 
     64#   if !defined(IPPROTO_IPV6) 
    6465        /* Need to download and install IPv6Kit for this platform. 
    6566         * Please see the comments above about Visual Studio 6. 
     
    7172#endif  /* _MSC_VER */ 
    7273 
     74/* Mingw32 needs ws2tcpip.h for the IGMP constants */ 
     75#if defined(__GNUC__) && defined(WIN32) && !defined(PJ_WS2TCPIP_H_INCLUDED) 
     76#   include <ws2tcpip.h> 
     77#endif 
    7378 
    7479#if defined(PJ_HAS_SYS_TYPES_H) && PJ_HAS_SYS_TYPES_H != 0 
Note: See TracChangeset for help on using the changeset viewer.