aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_win32_config.h
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2015-03-17 00:24:34 +0300
committerRuslan Ermilov <ru@nginx.com>2015-03-17 00:24:34 +0300
commit309928b941edf6e4a00ba873a70521c3ce3fc94d (patch)
tree63c27f741ecef6730850946510c224973918a80a /src/os/win32/ngx_win32_config.h
parentd81db904550f719907df5922f7d8c384dd349cdc (diff)
downloadnginx-309928b941edf6e4a00ba873a70521c3ce3fc94d.tar.gz
nginx-309928b941edf6e4a00ba873a70521c3ce3fc94d.zip
Core: expose maximum values of time_t and ngx_int_t.
These are needed to detect overflows.
Diffstat (limited to 'src/os/win32/ngx_win32_config.h')
-rw-r--r--src/os/win32/ngx_win32_config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/win32/ngx_win32_config.h b/src/os/win32/ngx_win32_config.h
index 711ad7df2..098ca24c0 100644
--- 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