summaryrefslogtreecommitdiff
path: root/libiberty/memset.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-15 03:35:47 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-15 03:35:47 +0000
commit83f85421ab7b9f97b4152e6174ba2b262d098e67 (patch)
treedcc4ca6916745869895ab9bff8b4d6e3c5108d71 /libiberty/memset.c
parent907e33698da74157790de475aadef58dc997e60b (diff)
downloadgcc-83f85421ab7b9f97b4152e6174ba2b262d098e67.tar.gz
* 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
Diffstat (limited to 'libiberty/memset.c')
-rw-r--r--libiberty/memset.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libiberty/memset.c b/libiberty/memset.c
index 489ca174815..5119f858ad0 100644
--- a/libiberty/memset.c
+++ b/libiberty/memset.c
@@ -13,15 +13,17 @@ Sets the first @var{count} bytes of @var{s} to the constant byte
*/
#include <ansidecl.h>
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
#include <stddef.h>
#else
#define size_t unsigned long
#endif
PTR
-DEFUN(memset, (dest, val, len),
- PTR dest AND register int val AND register size_t len)
+memset (dest, val, len)
+ PTR dest;
+ register int val;
+ register size_t len;
{
register unsigned char *ptr = (unsigned char*)dest;
while (len-- > 0)