From: Victor Julien Date: Wed, 7 Oct 2015 13:56:01 +0000 (+0200) Subject: Add global MAX macro. X-Git-Tag: suricata-3.0.1RC1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81878c1998759741baf511ca97149c5612369ffb;p=thirdparty%2Fsuricata.git Add global MAX macro. --- 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 */