From 81878c1998759741baf511ca97149c5612369ffb Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 7 Oct 2015 15:56:01 +0200 Subject: [PATCH] Add global MAX macro. --- src/suricata-common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/suricata-common.h b/src/suricata-common.h index 660a0bfecc..18791c3b04 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -297,6 +297,10 @@ #define MIN(x, y) (((x)<(y))?(x):(y)) #endif +#ifndef MAX +#define MAX(x, y) (((x)<(y))?(y):(x)) +#endif + typedef enum PacketProfileDetectId_ { PROF_DETECT_MPM, PROF_DETECT_MPM_PACKET, /* PKT MPM */ -- 2.47.2