diff src/os/win32/ngx_win32_config.h @ 5262:626f288fa5ed

Make macros safe.
author Gleb Smirnoff <glebius@nginx.com>
date Fri, 05 Jul 2013 11:42:25 +0400
parents 7956af6b6a02
children 670ceaba03d8
line wrap: on
line diff
--- a/src/os/win32/ngx_win32_config.h
+++ b/src/os/win32/ngx_win32_config.h
@@ -142,11 +142,11 @@ typedef int                 sig_atomic_t
 
 
 #define NGX_PTR_SIZE            4
-#define NGX_SIZE_T_LEN          sizeof("-2147483648") - 1
+#define NGX_SIZE_T_LEN          (sizeof("-2147483648") - 1)
 #define NGX_MAX_SIZE_T_VALUE    2147483647
-#define NGX_TIME_T_LEN          sizeof("-2147483648") - 1
+#define NGX_TIME_T_LEN          (sizeof("-2147483648") - 1)
 #define NGX_TIME_T_SIZE         4
-#define NGX_OFF_T_LEN           sizeof("-9223372036854775807") - 1
+#define NGX_OFF_T_LEN           (sizeof("-9223372036854775807") - 1)
 #define NGX_MAX_OFF_T_VALUE     9223372036854775807
 #define NGX_SIG_ATOMIC_T_SIZE   4