From f32553b70a62aea7c1358d03efbd82402a9043f8 Mon Sep 17 00:00:00 2001 From: Anders Selhammer Date: Mon, 18 Jun 2018 12:21:39 +0200 Subject: [PATCH] pdt: Added check if already defined TRUE and FALSE is also defined in net-snmp library. Without this check, compilation and includes must be made in a certain order. Signed-off-by: Anders Selhammer --- pdt.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pdt.h b/pdt.h index 29ffbb5..e46b218 100644 --- a/pdt.h +++ b/pdt.h @@ -22,7 +22,12 @@ #include -enum {FALSE, TRUE}; +#ifndef FALSE +#define FALSE 0 +#endif +#ifndef TRUE +#define TRUE 1 +#endif typedef int Boolean; typedef uint8_t Enumeration8;