snmp_agent: define MIN macro if not defined.
authorKorynkevych, RomanX <romanx.korynkevych@intel.com>
Wed, 14 Dec 2016 11:11:28 +0000 (11:11 +0000)
committerRoman Korynkevych <romanx.korynkevych@intel.com>
Tue, 3 Jan 2017 14:55:32 +0000 (14:55 +0000)
Change-Id: Ic57c14abb8b6b31547e97e6c394b8c3147b1e6b2
Signed-off-by: Korynkevych, RomanX <romanx.korynkevych@intel.com>
src/snmp_agent.c

index 4b963d0..8c7b822 100644 (file)
 #define ERR_BUF_SIZE 1024
 #define TYPE_STRING -1
 
+#ifndef MIN
+#define MIN(x, y) ((x) < (y) ? (x) : (y))
+#endif
+
 struct oid_s {
   oid oid[MAX_OID_LEN];
   size_t oid_len;