From 83f85421ab7b9f97b4152e6174ba2b262d098e67 Mon Sep 17 00:00:00 2001 From: sayle Date: Tue, 15 Apr 2003 03:35:47 +0000 Subject: * argv.c: Use ANSI_PROTOTYPES instead of __STDC__. * memchr.c: Likewise. * strcasecmp.c: Likewise. * strncasecmp.c: Likewise. * strncmp.c: Likewise. * xatexit.c: Likewise. * xmalloc.c: Likewise. * copysign.c: Use traditional function declaration instead of DEFUN. * sigsetmask.c: Likewise. * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN. * memset.c: Likewise. * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy. * memmove.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65619 138bc75d-0d04-0410-961f-82ee72b054a4 --- libiberty/memcmp.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libiberty/memcmp.c') diff --git a/libiberty/memcmp.c b/libiberty/memcmp.c index d8d3997d066..92f2b6e6425 100644 --- a/libiberty/memcmp.c +++ b/libiberty/memcmp.c @@ -16,15 +16,17 @@ as if comparing unsigned char arrays. */ #include -#ifdef __STDC__ +#ifdef ANSI_PROTOTYPES #include #else #define size_t unsigned long #endif int -DEFUN(memcmp, (str1, str2, count), - const PTR str1 AND const PTR str2 AND size_t count) +memcmp (str1, str2, count) + const PTR str1; + const PTR str2; + size_t count; { register const unsigned char *s1 = (const unsigned char*)str1; register const unsigned char *s2 = (const unsigned char*)str2; -- cgit v1.2.1