Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7394


Ignore:
Timestamp:
Sep 9, 2010, 8:44:25 PM (14 years ago)
Author:
adrfried
Message:

use newest WinSock version

Location:
code/branches/ipv6/src/external/enet
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ipv6/src/external/enet/unix.c

    r7393 r7394  
    450450    struct timeval timeVal;
    451451    int selectCount;
     452    ENetSocket maxSocket;
    452453
    453454    timeVal.tv_sec = timeout / 1000;
     
    473474    }
    474475
    475     ENetSocket maxSocket = 0;
     476    maxSocket = 0;
    476477    if (socket4 != ENET_SOCKET_NULL)
    477478        maxSocket = socket4;
  • code/branches/ipv6/src/external/enet/win32.c

    r7392 r7394  
    1414enet_initialize (void)
    1515{
    16     WORD versionRequested = MAKEWORD (1, 1);
     16    WORD versionRequested = MAKEWORD (2, 2);
    1717    WSADATA wsaData;
    1818   
     
    2020       return -1;
    2121
    22     if (LOBYTE (wsaData.wVersion) != 1||
    23         HIBYTE (wsaData.wVersion) != 1)
     22    if (LOBYTE (wsaData.wVersion) != 2||
     23        HIBYTE (wsaData.wVersion) != 2)
    2424    {
    2525       WSACleanup ();
Note: See TracChangeset for help on using the changeset viewer.