]> granicus.if.org Git - graphviz/commitdiff
Deleted `defined()` in ast_common.h around set values.
authorErwin Janssen <erwinjanssen@outlook.com>
Sun, 10 Jul 2016 00:59:05 +0000 (02:59 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Sun, 10 Jul 2016 12:32:59 +0000 (14:32 +0200)
Some values are defined 0 or 1 at the top of the file. There shouldn't be
a `defined` around these, as the value must the checked, not if they are
defined.

windows/include/ast_common.h

index 70ef7a5baf3492b582644044f8abdd900d30ba76..43a88e45d1aa282201e4dc309cb7f7c33658bcb1 100644 (file)
 #define __DEFINE__(T,obj,val)  T obj = val
 #endif
 #ifndef _AST_STD_H
-#      if defined(_hdr_stddef)
+#      if _hdr_stddef
 #      include <stddef.h>
 #      endif
-#      if defined(_sys_types)
+#      if _sys_types
 #      include <sys/types.h>
 #      endif
 #endif
-#if !defined(_typ_size_t)
+#if !_typ_size_t
 #      define _typ_size_t      1
 typedef int size_t;
 #endif
-#if !defined(_typ_ssize_t)
+#if !_typ_ssize_t
 #      define _typ_ssize_t     1
 typedef int ssize_t;
 #endif