Changeset 240 in Main for trunk/Server


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

winsock1 support

Location:
trunk/Server
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/config.c

    r215 r240  
    1616
    1717#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__)
     18#ifdef USE_WINSOCK1
     19#include <winsock.h>
     20#else
    1821#include <winsock2.h>
     22#endif
    1923#endif
    2024
  • trunk/Server/http.c

    r219 r240  
    1717
    1818#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)
     19#ifdef USE_WINSOCK1
     20#include <winsock.h>
     21#else
    1922#include <winsock2.h>
     23#endif
    2024#else
    2125#ifdef USE_POLL
  • 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++)
  • trunk/Server/tw_config.h

    r219 r240  
    1616
    1717#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)
     18#ifdef USE_WINSOCK1
     19#include <winsock.h>
     20#else
    1821#include <winsock2.h>
     22#endif
    1923#define NO_IPV6
    2024#else
Note: See TracChangeset for help on using the changeset viewer.