X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Thu, 7 Feb 2002 09:05:14 +0200 (WET) From: Andris Pavenis X-Sender: pavenis AT ieva06 To: Eli Zaretskii Cc: Charles Sandmann , djgpp-workers AT delorie DOT com, ST001906 AT HRZ1 DOT HRZ DOT TU-Darmstadt DOT De Subject: Re: conflicting types for bzero (gcc303) In-Reply-To: <3069-Wed06Feb2002221302+0200-eliz@is.elta.co.il> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 6 Feb 2002, Eli Zaretskii wrote: > > From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) > > Date: Wed, 6 Feb 2002 13:05:59 -0600 (CST) > > > > #if __GNUC__ >= 3 > > #define bcopy(s, d, n) memcpy(d, s, n) > > #define bzero(s, n) memset(s, 0, n) > > #else > > void * bcopy(const void *_a, void *_b, size_t _len); > > void * bzero(void *ptr, size_t _len); I think we should use (untested yet) #define bzero(s,n) __builtin_bzero(s,n) for gcc-3.X Andris > > #endif > > > > > > Or can the prototypes be removed completely with GCC 3.x if they are > > built-in? > > I think we should modify bzero and bcopy so that they fit the > (universally accepted) prototypes GCC expects. > > >