Ignore:
Timestamp:
Sep 10, 2006 4:33:48 PM (18 years ago)
Author:
bennylp
Message:

Fixed autoconf in mingw

File:
1 edited

Legend:

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

    r553 r699  
    2525 */ 
    2626 
     27#if defined(PJ_HAS_WINSOCK2_H) && PJ_HAS_WINSOCK2_H != 0 
     28#  include <winsock2.h> 
     29#endif 
     30 
    2731#if defined(PJ_HAS_WINSOCK_H) && PJ_HAS_WINSOCK_H != 0 
    2832#  include <winsock.h> 
    29 #endif 
    30  
    31 #if defined(PJ_HAS_WINSOCK2_H) && PJ_HAS_WINSOCK2_H != 0 
    32 #  include <winsock2.h> 
    3333#endif 
    3434 
     
    125125 
    126126/* 
    127  * Windows specific 
     127 * This will finally be obsoleted, since it should be declared in 
     128 * os_auto.h 
    128129 */ 
    129 #if defined(PJ_WIN32) || defined(PJ_WIN32_WINCE) 
     130#if !defined(PJ_HAS_SOCKLEN_T) || PJ_HAS_SOCKLEN_T==0 
    130131    typedef int socklen_t; 
    131132#endif 
Note: See TracChangeset for help on using the changeset viewer.