From: Erwin Janssen Date: Sun, 10 Jul 2016 00:59:05 +0000 (+0200) Subject: Deleted `defined()` in ast_common.h around set values. X-Git-Tag: untagged-3c169aaa6280ec506b08^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa7fd5b878a0941f5cd2dcb43440c6aee5e039ad;p=graphviz Deleted `defined()` in ast_common.h around set values. 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. --- diff --git a/windows/include/ast_common.h b/windows/include/ast_common.h index 70ef7a5ba..43a88e45d 100644 --- a/windows/include/ast_common.h +++ b/windows/include/ast_common.h @@ -100,18 +100,18 @@ #define __DEFINE__(T,obj,val) T obj = val #endif #ifndef _AST_STD_H -# if defined(_hdr_stddef) +# if _hdr_stddef # include # endif -# if defined(_sys_types) +# if _sys_types # include # 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