aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_config.h
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2016-09-29 15:28:24 +0300
committerRuslan Ermilov <ru@nginx.com>2016-09-29 15:28:24 +0300
commitc40de746829971f2edbf9faeae64d4516cb5466e (patch)
treeece4a42e478e892423a571fd94a19c0ae1f5ff63 /src/core/ngx_config.h
parent833d03a0a2f9fa62de0f347a08c36a787bcdd8e2 (diff)
downloadnginx-c40de746829971f2edbf9faeae64d4516cb5466e.tar.gz
nginx-c40de746829971f2edbf9faeae64d4516cb5466e.zip
Introduced the NGX_COMPAT macro.
When enabled, some structures are padded to be size compatible with their NGINX Plus versions.
Diffstat (limited to 'src/core/ngx_config.h')
-rw-r--r--src/core/ngx_config.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/ngx_config.h b/src/core/ngx_config.h
index a0bfa63cd..1861be601 100644
--- a/src/core/ngx_config.h
+++ b/src/core/ngx_config.h
@@ -129,4 +129,17 @@ typedef intptr_t ngx_flag_t;
#define NGX_MAX_INT32_VALUE (uint32_t) 0x7fffffff
+#if (NGX_COMPAT)
+
+#define NGX_COMPAT_BEGIN(slots) uint64_t spare[slots];
+#define NGX_COMPAT_END
+
+#else
+
+#define NGX_COMPAT_BEGIN(slots)
+#define NGX_COMPAT_END
+
+#endif
+
+
#endif /* _NGX_CONFIG_H_INCLUDED_ */