aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_core.h')
-rw-r--r--src/core/ngx_core.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ngx_core.h b/src/core/ngx_core.h
index 58d0b8030..0994aa5cd 100644
--- a/src/core/ngx_core.h
+++ b/src/core/ngx_core.h
@@ -83,7 +83,8 @@ typedef void (*ngx_connection_handler_pt)(ngx_connection_t *c);
#define CRLF "\x0d\x0a"
-#define ngx_abs(value) (((value) >= 0) ? (value) : - (value))
+#define ngx_abs(value) (((value) >= 0) ? (value) : - (value))
+#define ngx_max(val1, val2) ((val1 < val2) ? (val2) : (val1))
void ngx_cpuinfo(void);