diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-06-12 09:54:39 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-06-12 09:54:39 +0400 |
commit | 0915977df53c486abbc6081e1c83f9f8e7a8f111 (patch) | |
tree | 778b5191eed39b3043798423ccc23708e65f116f /src/core/ngx_config.h | |
parent | 239baac646073cab7bbaf537ba2d6ca844f2c992 (diff) |
nginx-0.0.1-2003-06-12-09:54:39 import
Diffstat (limited to 'src/core/ngx_config.h')
-rw-r--r-- | src/core/ngx_config.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/ngx_config.h b/src/core/ngx_config.h index b9a0988dc..807ca06dc 100644 --- a/src/core/ngx_config.h +++ b/src/core/ngx_config.h @@ -38,10 +38,10 @@ /* TODO: auto_conf */ -#define NGX_ALIGN (4 - 1) -#define NGX_ALIGN_TYPE (unsigned int) +#define NGX_ALIGN (sizeof(unsigned long) - 1) /* platform word */ +#define NGX_ALIGN_CAST (unsigned long) /* size of the pointer */ -#define ngx_align(p) (char *) ((NGX_ALIGN_TYPE p + NGX_ALIGN) & ~NGX_ALIGN) +#define ngx_align(p) (char *) ((NGX_ALIGN_CAST p + NGX_ALIGN) & ~NGX_ALIGN) /* TODO: auto_conf: ngx_inline inline __inline __inline__ */ @@ -50,16 +50,16 @@ #endif -#ifndef INFTIM /* Linux */ -#define INFTIM -1 +#ifndef INFTIM /* Linux */ +#define INFTIM -1 #endif -#ifndef INADDR_NONE /* Solaris */ -#define INADDR_NONE ((unsigned long) -1) +#ifndef INADDR_NONE /* Solaris */ +#define INADDR_NONE ((unsigned int) -1) #endif -#ifndef INET_ADDRSTRLEN -#define INET_ADDRSTRLEN 16 +#ifndef INET_ADDRSTRLEN /* Win32 */ +#define INET_ADDRSTRLEN 16 #endif |