comparison src/core/ngx_config.h @ 427:0d08eabe5c7b

nginx-0.0.10-2004-09-15-20:00:43 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 15 Sep 2004 16:00:43 +0000
parents 69e851f83522
children da8c5707af39
comparison
equal deleted inserted replaced
426:3f88935a02e8 427:0d08eabe5c7b
82 #define NGX_INT32_LEN sizeof("-2147483648") - 1 82 #define NGX_INT32_LEN sizeof("-2147483648") - 1
83 #define NGX_INT64_LEN sizeof("-9223372036854775808") - 1 83 #define NGX_INT64_LEN sizeof("-9223372036854775808") - 1
84 #define NGX_OFF_T_LEN sizeof("-9223372036854775808") - 1 84 #define NGX_OFF_T_LEN sizeof("-9223372036854775808") - 1
85 85
86 86
87 #if (SOLARIS)
88
89 /* TODO: auto_conf */
90 #define NGX_ALIGN (_MAX_ALIGNMENT - 1) /* platform word */
91 #define NGX_ALIGN_CAST (unsigned long) /* size of the pointer */
92
93 #else
87 94
88 /* TODO: auto_conf */ 95 /* TODO: auto_conf */
89 #define NGX_ALIGN (sizeof(unsigned long) - 1) /* platform word */ 96 #define NGX_ALIGN (sizeof(unsigned long) - 1) /* platform word */
90 #define NGX_ALIGN_CAST (unsigned long) /* size of the pointer */ 97 #define NGX_ALIGN_CAST (unsigned long) /* size of the pointer */
98
99 #endif
91 100
92 #define ngx_align(p) (char *) ((NGX_ALIGN_CAST p + NGX_ALIGN) & ~NGX_ALIGN) 101 #define ngx_align(p) (char *) ((NGX_ALIGN_CAST p + NGX_ALIGN) & ~NGX_ALIGN)
93 102
94 103
95 /* TODO: auto_conf: ngx_inline inline __inline __inline__ */ 104 /* TODO: auto_conf: ngx_inline inline __inline __inline__ */