www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/03/09/18:03:36

Date: Tue, 9 Mar 1999 18:03:30 -0500
Message-Id: <199903092303.SAA09735@envy.delorie.com>
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
In-reply-to: <199903092202.WAA52244@out2.ibm.net> (snowball3@usa.net)
Subject: Re: Patch to simplify cross-building of GCC
References: <199903092202 DOT WAA52244 AT out2 DOT ibm DOT net>
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

But in all the cases where the #ifdef would work, the define to
nothing would work equally well.

> Then perhaps you would consider the patch below. It addresses the 
> 'empty declaration' warnings generated when compiling Bash and 
> other packages. Other headers would need adjustment too, of course. 
> Instead of defining the  __DJ_* macros to null after first use, it 
> undefines them so the '#if defined' test, when applied to other headers 
> using the __DJ_* macros, avoids defining a type twice and generating 
> a warning about an empty declaration.
>
> + #if defined (__DJ_va_list)
>   __DJ_va_list
>   #undef __DJ_va_list
> ! #endif

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019