Mercurial > hg > nginx
comparison src/core/ngx_config.h @ 5262:626f288fa5ed
Make macros safe.
author | Gleb Smirnoff <glebius@nginx.com> |
---|---|
date | Fri, 05 Jul 2013 11:42:25 +0400 |
parents | d620f497c50f |
children | b92d5a26d55f |
comparison
equal
deleted
inserted
replaced
5261:af60a210cb78 | 5262:626f288fa5ed |
---|---|
78 typedef intptr_t ngx_int_t; | 78 typedef intptr_t ngx_int_t; |
79 typedef uintptr_t ngx_uint_t; | 79 typedef uintptr_t ngx_uint_t; |
80 typedef intptr_t ngx_flag_t; | 80 typedef intptr_t ngx_flag_t; |
81 | 81 |
82 | 82 |
83 #define NGX_INT32_LEN sizeof("-2147483648") - 1 | 83 #define NGX_INT32_LEN (sizeof("-2147483648") - 1) |
84 #define NGX_INT64_LEN sizeof("-9223372036854775808") - 1 | 84 #define NGX_INT64_LEN (sizeof("-9223372036854775808") - 1) |
85 | 85 |
86 #if (NGX_PTR_SIZE == 4) | 86 #if (NGX_PTR_SIZE == 4) |
87 #define NGX_INT_T_LEN NGX_INT32_LEN | 87 #define NGX_INT_T_LEN NGX_INT32_LEN |
88 #else | 88 #else |
89 #define NGX_INT_T_LEN NGX_INT64_LEN | 89 #define NGX_INT_T_LEN NGX_INT64_LEN |