Subversion Repositories Tewi

Rev

Rev 212 | Rev 219 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 212 Rev 215
Line 1... Line 1...
1
/* $Id: tw_config.h 212 2024-10-02 17:44:55Z nishi $ */
1
/* $Id: tw_config.h 215 2024-10-02 19:24:43Z nishi $ */
2
 
2
 
3
#ifndef __TW_CONFIG_H__
3
#ifndef __TW_CONFIG_H__
4
#define __TW_CONFIG_H__
4
#define __TW_CONFIG_H__
5
 
5
 
6
#ifdef __cplusplus
6
#ifdef __cplusplus
Line 12... Line 12...
12
#include "tw_http.h"
12
#include "tw_http.h"
13
 
13
 
14
#include <stdint.h>
14
#include <stdint.h>
15
#include <stdbool.h>
15
#include <stdbool.h>
16
 
16
 
17
#if defined(__MINGW32__) || defined(_MSC_VER)
17
#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__)
18
#include <winsock2.h>
18
#include <winsock2.h>
19
#define NO_IPV6
19
#define NO_IPV6
20
#else
20
#else
21
#ifdef __PPU__
21
#ifdef __PPU__
22
#include <net/net.h>
22
#include <net/net.h>
Line 40... Line 40...
40
#define MAX_MIME 1024
40
#define MAX_MIME 1024
41
#define MAX_ICON 1024
41
#define MAX_ICON 1024
42
#define MAX_INDEX 1024
42
#define MAX_INDEX 1024
43
#define MAX_README 8
43
#define MAX_README 8
44
 
44
 
45
#ifdef _MSC_VER
45
#if defined(_MSC_VER) || defined(__BORLANDC__)
46
#define NUM1024 1024UL
46
#define NUM1024 1024UL
47
#else
47
#else
48
#define NUM1024 1024ULL
48
#define NUM1024 1024ULL
49
#endif
49
#endif
50
 
50
 
Line 92... Line 92...
92
	char* chroot_path;
92
	char* chroot_path;
93
#endif
93
#endif
94
};
94
};
95
 
95
 
96
struct tw_config {
96
struct tw_config {
97
#ifdef _MSC_VER
97
#if defined(_MSC_VER) || defined(__BORLANDC__)
98
	uint32_t ports[MAX_PORTS + 1];
98
	uint32_t ports[MAX_PORTS + 1];
99
#else
99
#else
100
	uint64_t ports[MAX_PORTS + 1]; /* If port & (1 << 32) is non-zero, it is SSL */
100
	uint64_t ports[MAX_PORTS + 1]; /* If port & (1 << 32) is non-zero, it is SSL */
101
#endif
101
#endif
102
	char hostname[1025];
102
	char hostname[1025];