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.selham...@est.tech> --- 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 <stdint.h> -enum {FALSE, TRUE}; +#ifndef FALSE +#define FALSE 0 +#endif +#ifndef TRUE +#define TRUE 1 +#endif typedef int Boolean; typedef uint8_t Enumeration8; -- 1.8.3.1 --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel