]> granicus.if.org Git - graphviz/commitdiff
janitor - don't #define NOT, TRUE, FALSE if they are already defined
authorellson <devnull@localhost>
Fri, 4 Jan 2008 11:25:40 +0000 (11:25 +0000)
committerellson <devnull@localhost>
Fri, 4 Jan 2008 11:25:40 +0000 (11:25 +0000)
lib/common/types.h

index edfc93c4f928b7fd322e95770c6915b9cdf361b1..9fab28bca9d84baa92e054178fc4ee5a39dcb7ff 100644 (file)
 #include <signal.h>
 
 typedef unsigned char boolean;
+#ifndef NOT
 #define NOT(v) (!(v))
+#endif
+#ifndef FALSE
 #define FALSE 0
+#endif
+#ifndef TRUE
 #define TRUE NOT(FALSE)
+#endif
 
 #include "geom.h"
 #include "gvcext.h"