www.delorie.com/archives/browse.cgi | search |
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 <pavenis AT lanet DOT lv> |
X-Sender: | pavenis AT ieva06 |
To: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
Cc: | Charles Sandmann <sandmann AT clio DOT rice DOT edu>, 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: | <Pine.A41.4.05.10202070900520.6950-100000@ieva06> |
MIME-Version: | 1.0 |
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 |
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. > > >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |