From 5184447ee9580f6bd945f8915114b59f4f3068a1 Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Mon, 11 Jul 2016 22:27:33 +0200 Subject: [PATCH] Surrounded _BLD_cdt with defined() in cdt.h. This solves hundreds of Wundef warnings. --- lib/cdt/cdt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.40.0