Changeset 240 in Main for trunk/Server/server.c


Ignore:
Timestamp:
Oct 3, 2024, 2:54:55 PM (6 weeks ago)
Author:
Nishi
Message:

winsock1 support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r219 r240  
    3838#include <wspiapi.h>
    3939#endif
     40#ifdef USE_WINSOCK1
     41#include <winsock.h>
     42#else
    4043#include <winsock2.h>
     44#endif
    4145#include <process.h>
    4246#include <windows.h>
     
    123127#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)
    124128        WSADATA wsa;
     129#ifdef USE_WINSOCK1
     130        WSAStartup(MAKEWORD(1, 1), &wsa);
     131#else
    125132        WSAStartup(MAKEWORD(2, 0), &wsa);
     133#endif
    126134#endif
    127135        for(i = 0; config.ports[i] != -1; i++)
Note: See TracChangeset for help on using the changeset viewer.