Changeset 212 in Main for trunk/Server/tw_config.h


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

compiles on vc6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/tw_config.h

    r187 r212  
    1515#include <stdbool.h>
    1616
    17 #ifdef __MINGW32__
     17#if defined(__MINGW32__) || defined(_MSC_VER)
    1818#include <winsock2.h>
    1919#define NO_IPV6
     
    4242#define MAX_INDEX 1024
    4343#define MAX_README 8
     44
     45#ifdef _MSC_VER
     46#define NUM1024 1024UL
     47#else
     48#define NUM1024 1024ULL
     49#endif
    4450
    4551enum TW_DIR_TYPE {
     
    8995
    9096struct tw_config {
     97#ifdef _MSC_VER
     98        uint32_t ports[MAX_PORTS + 1];
     99#else
    91100        uint64_t ports[MAX_PORTS + 1]; /* If port & (1 << 32) is non-zero, it is SSL */
     101#endif
    92102        char hostname[1025];
    93103        char* defined[1025];
Note: See TracChangeset for help on using the changeset viewer.