Mercurial > hg > nginx-quic
comparison src/core/ngx_config.h @ 104:7db96f59bc29
nginx-0.0.1-2003-06-12-09:54:39 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 12 Jun 2003 05:54:39 +0000 |
parents | 8220378432a8 |
children | 571bcbff82c5 |
comparison
equal
deleted
inserted
replaced
103:6dfda4cf5200 | 104:7db96f59bc29 |
---|---|
36 /* TODO: platform specific: array[NGX_INVALID_ARRAY_INDEX] must cause SIGSEGV */ | 36 /* TODO: platform specific: array[NGX_INVALID_ARRAY_INDEX] must cause SIGSEGV */ |
37 #define NGX_INVALID_ARRAY_INDEX 0x80000000 | 37 #define NGX_INVALID_ARRAY_INDEX 0x80000000 |
38 | 38 |
39 | 39 |
40 /* TODO: auto_conf */ | 40 /* TODO: auto_conf */ |
41 #define NGX_ALIGN (4 - 1) | 41 #define NGX_ALIGN (sizeof(unsigned long) - 1) /* platform word */ |
42 #define NGX_ALIGN_TYPE (unsigned int) | 42 #define NGX_ALIGN_CAST (unsigned long) /* size of the pointer */ |
43 | 43 |
44 #define ngx_align(p) (char *) ((NGX_ALIGN_TYPE p + NGX_ALIGN) & ~NGX_ALIGN) | 44 #define ngx_align(p) (char *) ((NGX_ALIGN_CAST p + NGX_ALIGN) & ~NGX_ALIGN) |
45 | 45 |
46 | 46 |
47 /* TODO: auto_conf: ngx_inline inline __inline __inline__ */ | 47 /* TODO: auto_conf: ngx_inline inline __inline __inline__ */ |
48 #ifndef ngx_inline | 48 #ifndef ngx_inline |
49 #define ngx_inline inline | 49 #define ngx_inline inline |
50 #endif | 50 #endif |
51 | 51 |
52 | 52 |
53 #ifndef INFTIM /* Linux */ | 53 #ifndef INFTIM /* Linux */ |
54 #define INFTIM -1 | 54 #define INFTIM -1 |
55 #endif | 55 #endif |
56 | 56 |
57 #ifndef INADDR_NONE /* Solaris */ | 57 #ifndef INADDR_NONE /* Solaris */ |
58 #define INADDR_NONE ((unsigned long) -1) | 58 #define INADDR_NONE ((unsigned int) -1) |
59 #endif | 59 #endif |
60 | 60 |
61 #ifndef INET_ADDRSTRLEN | 61 #ifndef INET_ADDRSTRLEN /* Win32 */ |
62 #define INET_ADDRSTRLEN 16 | 62 #define INET_ADDRSTRLEN 16 |
63 #endif | 63 #endif |
64 | 64 |
65 | 65 |
66 #endif /* _NGX_CONFIG_H_INCLUDED_ */ | 66 #endif /* _NGX_CONFIG_H_INCLUDED_ */ |