diff options
author | DJ Delorie <dj@redhat.com> | 2003-04-15 03:53:53 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2003-04-15 03:53:53 +0000 |
commit | 7ec2fc6f764fef9000cc768516df04035c85ebac (patch) | |
tree | b85799f938b5659b5ce403f577ee4d4403321f53 /libiberty/memset.c | |
parent | eec539c7798006fabf0ceeeac3e64593daed85a7 (diff) | |
download | gdb-7ec2fc6f764fef9000cc768516df04035c85ebac.zip gdb-7ec2fc6f764fef9000cc768516df04035c85ebac.tar.gz gdb-7ec2fc6f764fef9000cc768516df04035c85ebac.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/memset.c')
-rw-r--r-- | libiberty/memset.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libiberty/memset.c b/libiberty/memset.c index 489ca17..5119f85 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) |