diff options
Diffstat (limited to 'src/core/ngx_conf_file.h')
-rw-r--r-- | src/core/ngx_conf_file.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ngx_conf_file.h b/src/core/ngx_conf_file.h index 046ee2c75..07deeb6a1 100644 --- a/src/core/ngx_conf_file.h +++ b/src/core/ngx_conf_file.h @@ -102,6 +102,11 @@ struct ngx_conf_s { conf = default; \ } +#define ngx_conf_init_unsigned_value(conf, default) \ + if (conf == (unsigned) NGX_CONF_UNSET) { \ + conf = default; \ + } + #define ngx_conf_init_size_value(conf, default) \ if (conf == NGX_CONF_UNSET) { \ conf = default; \ |