diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2002-12-15 06:25:09 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2002-12-15 06:25:09 +0000 |
| commit | 42feecbdb694e114e034f0be67d19bba4165c363 (patch) | |
| tree | aea7c9c7c12f3cfef321901ddf92846815f1b876 /src/core/ngx_config.h | |
| parent | 3add464b545b5dd29d07873b84f90fb77021d0c4 (diff) | |
| download | nginx-42feecbdb694e114e034f0be67d19bba4165c363.tar.gz nginx-42feecbdb694e114e034f0be67d19bba4165c363.tar.bz2 | |
nginx-0.0.1-2002-12-15-09:25:09 import
Diffstat (limited to 'src/core/ngx_config.h')
| -rw-r--r-- | src/core/ngx_config.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/core/ngx_config.h b/src/core/ngx_config.h index f7223fa45..09f73eb34 100644 --- a/src/core/ngx_config.h +++ b/src/core/ngx_config.h @@ -12,6 +12,13 @@ #define FD_SETSIZE 1024 +/* auto_conf */ +#define NGX_ALIGN (4 - 1) +#define NGX_ALIGN_TYPE unsigned + +#define ngx_align(p) (char *) (((NGX_ALIGN_TYPE) p + NGX_ALIGN) & ~NGX_ALIGN) + + #ifdef _WIN32 #define WIN32 1 @@ -25,9 +32,6 @@ #define ngx_inline __inline -#define ngx_memzero ZeroMemory - -#define ngx_close_socket closesocket #ifndef HAVE_INHERITED_NONBLOCK #define HAVE_INHERITED_NONBLOCK 1 @@ -66,9 +70,6 @@ #define ngx_inline inline -#define ngx_memzero bzero - -#define ngx_close_socket close #endif /* POSIX */ |
