From: Erwin Janssen Date: Mon, 11 Jul 2016 20:27:33 +0000 (+0200) Subject: Surrounded _BLD_cdt with defined() in cdt.h. X-Git-Tag: untagged-9ee5934fa10f12b4043f^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5184447ee9580f6bd945f8915114b59f4f3068a1;p=graphviz Surrounded _BLD_cdt with defined() in cdt.h. This solves hundreds of Wundef warnings. --- diff --git a/lib/cdt/cdt.h b/lib/cdt/cdt.h index 323f983e4..2829f6879 100644 --- a/lib/cdt/cdt.h +++ b/lib/cdt/cdt.h @@ -183,10 +183,10 @@ struct _dtstat_s #define DT_HASHSIZE 7 /* setting hash table size */ _BEGIN_EXTERNS_ /* public data */ -#if _BLD_cdt && defined(__EXPORT__) +#if defined(_BLD_cdt) && defined(__EXPORT__) #define extern __EXPORT__ #endif -#if !_BLD_cdt && defined(__IMPORT__) +#if !defined(_BLD_cdt) && defined(__IMPORT__) #define extern __IMPORT__ #endif @@ -215,7 +215,7 @@ extern Dtmethod_t _Dtstack; _END_EXTERNS_ _BEGIN_EXTERNS_ /* public functions */ -#if _BLD_cdt && defined(__EXPORT__) +#if defined(_BLD_cdt) && defined(__EXPORT__) #define extern __EXPORT__ #endif