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 <anders.selhammer@est.tech>
master
Anders Selhammer 2018-06-18 12:21:39 +02:00 committed by Richard Cochran
parent d85c592993
commit f32553b70a
1 changed files with 6 additions and 1 deletions

7
pdt.h
View File

@ -22,7 +22,12 @@
#include <stdint.h>
enum {FALSE, TRUE};
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
typedef int Boolean;
typedef uint8_t Enumeration8;