Mercurial > hg > nginx
diff src/os/win32/ngx_win32_config.h @ 6008:b92d5a26d55f
Core: expose maximum values of time_t and ngx_int_t.
These are needed to detect overflows.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 17 Mar 2015 00:24:34 +0300 |
parents | 5d4e4619982f |
children | 457ec43dd8d5 |
line wrap: on
line diff
--- a/src/os/win32/ngx_win32_config.h +++ b/src/os/win32/ngx_win32_config.h @@ -196,6 +196,7 @@ typedef int sig_atomic_t #define NGX_MAX_SIZE_T_VALUE 9223372036854775807 #define NGX_TIME_T_LEN (sizeof("-9223372036854775808") - 1) #define NGX_TIME_T_SIZE 8 +#define NGX_MAX_TIME_T_VALUE 9223372036854775807 #else @@ -204,6 +205,7 @@ typedef int sig_atomic_t #define NGX_MAX_SIZE_T_VALUE 2147483647 #define NGX_TIME_T_LEN (sizeof("-2147483648") - 1) #define NGX_TIME_T_SIZE 4 +#define NGX_MAX_TIME_T_VALUE 2147483647 #endif