mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-09 16:27:31 +08:00
gansidecl.h: Check for a conflicting macro definition before attempting to prototype bcopy...
* gansidecl.h: Check for a conflicting macro definition before attempting to prototype bcopy, bcmp or bzero. From-SVN: r17773
This commit is contained in:
parent
e93e582cb7
commit
7d4679eaa8
@ -1,3 +1,8 @@
|
||||
Sun Feb 8 01:49:18 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* gansidecl.h: Check for a conflicting macro definition before
|
||||
attempting to prototype bcopy, bcmp or bzero.
|
||||
|
||||
Sun Feb 8 00:09:59 1998 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* expr.c (clear_pending_stack_adjust): Handle case where a function
|
||||
|
@ -77,32 +77,32 @@ Boston, MA 02111-1307, USA. */
|
||||
|
||||
#endif /* ! __STDC__ */
|
||||
|
||||
#ifdef HAVE_BCOPY
|
||||
# ifdef NEED_DECLARATION_BCOPY
|
||||
#ifndef bcopy
|
||||
# ifdef HAVE_BCOPY
|
||||
# ifdef NEED_DECLARATION_BCOPY
|
||||
void bcopy ();
|
||||
# endif
|
||||
#else
|
||||
# ifndef bcopy
|
||||
# endif
|
||||
# else
|
||||
# define bcopy(src,dst,len) memcpy ((dst),(src),(len))
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BZERO
|
||||
# ifdef NEED_DECLARATION_BZERO
|
||||
#ifndef bzero
|
||||
# ifdef HAVE_BZERO
|
||||
# ifdef NEED_DECLARATION_BZERO
|
||||
void bzero ();
|
||||
# endif
|
||||
#else
|
||||
# ifndef bzero
|
||||
# endif
|
||||
# else
|
||||
# define bzero(dst,len) memset ((dst),0,(len))
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BCMP
|
||||
# ifdef NEED_DECLARATION_BCMP
|
||||
#ifndef bcmp
|
||||
# ifdef HAVE_BCMP
|
||||
# ifdef NEED_DECLARATION_BCMP
|
||||
int bcmp ();
|
||||
# endif
|
||||
#else
|
||||
# ifndef bcmp
|
||||
# endif
|
||||
# else
|
||||
# define bcmp(left,right,len) memcmp ((left),(right),(len))
|
||||
# endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user