Mercurial > hg > nginx
comparison src/core/ngx_config.h @ 6715:d200a0fd00b7
Introduced the NGX_COMPAT macro.
When enabled, some structures are padded to be size compatible
with their NGINX Plus versions.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 29 Sep 2016 15:28:24 +0300 |
parents | 5805301f990f |
children |
comparison
equal
deleted
inserted
replaced
6714:c3e3de6d2672 | 6715:d200a0fd00b7 |
---|---|
127 | 127 |
128 #define NGX_MAX_UINT32_VALUE (uint32_t) 0xffffffff | 128 #define NGX_MAX_UINT32_VALUE (uint32_t) 0xffffffff |
129 #define NGX_MAX_INT32_VALUE (uint32_t) 0x7fffffff | 129 #define NGX_MAX_INT32_VALUE (uint32_t) 0x7fffffff |
130 | 130 |
131 | 131 |
132 #if (NGX_COMPAT) | |
133 | |
134 #define NGX_COMPAT_BEGIN(slots) uint64_t spare[slots]; | |
135 #define NGX_COMPAT_END | |
136 | |
137 #else | |
138 | |
139 #define NGX_COMPAT_BEGIN(slots) | |
140 #define NGX_COMPAT_END | |
141 | |
142 #endif | |
143 | |
144 | |
132 #endif /* _NGX_CONFIG_H_INCLUDED_ */ | 145 #endif /* _NGX_CONFIG_H_INCLUDED_ */ |