diff options
author | DJ Delorie <dj@redhat.com> | 2005-07-09 13:05:49 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-07-09 13:05:49 +0000 |
commit | 460565cb9d6df815a25b3b30ea026f3b3e9e89f7 (patch) | |
tree | 1d02f6649186004c2c017ed8838e9dc9fed57c39 /libiberty | |
parent | c94c2c4ee441eb123bb9ad0ebe106fc5201b3933 (diff) | |
download | gdb-460565cb9d6df815a25b3b30ea026f3b3e9e89f7.zip gdb-460565cb9d6df815a25b3b30ea026f3b3e9e89f7.tar.gz gdb-460565cb9d6df815a25b3b30ea026f3b3e9e89f7.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 6 | ||||
-rw-r--r-- | libiberty/memcpy.c | 4 | ||||
-rw-r--r-- | libiberty/memmove.c | 4 | ||||
-rw-r--r-- | libiberty/objalloc.c | 2 |
4 files changed, 10 insertions, 6 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 5bbaa1c..dc55ff2 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,9 +1,3 @@ -2005-07-09 Ben Elliston <bje@au.ibm.com> - - * memcpy.c: Remove ANSI_PROTOTYPES conditional code. - * memmove.c: Likewise. - * objalloc.c: Likewise. - 2005-07-07 Kelley Cook <kcook@gcc.gnu.org> * config.table: Delete file. Move former contents into ... diff --git a/libiberty/memcpy.c b/libiberty/memcpy.c index 9b5b242..8a97b85 100644 --- a/libiberty/memcpy.c +++ b/libiberty/memcpy.c @@ -13,7 +13,11 @@ Copies @var{length} bytes from memory region @var{in} to region */ #include <ansidecl.h> +#ifdef ANSI_PROTOTYPES #include <stddef.h> +#else +#define size_t unsigned long +#endif void bcopy (const void*, void*, size_t); diff --git a/libiberty/memmove.c b/libiberty/memmove.c index 06a24fc..30801f2 100644 --- a/libiberty/memmove.c +++ b/libiberty/memmove.c @@ -13,7 +13,11 @@ Copies @var{count} bytes from memory area @var{from} to memory area */ #include <ansidecl.h> +#ifdef ANSI_PROTOTYPES #include <stddef.h> +#else +#define size_t unsigned long +#endif void bcopy (const void*, void*, size_t); diff --git a/libiberty/objalloc.c b/libiberty/objalloc.c index 3ddac2c..d3d2d16 100644 --- a/libiberty/objalloc.c +++ b/libiberty/objalloc.c @@ -30,8 +30,10 @@ Boston, MA 02110-1301, USA. */ #include <unixlib.h> #else +#ifdef ANSI_PROTOTYPES /* Get a definition for size_t. */ #include <stddef.h> +#endif #ifdef HAVE_STDLIB_H #include <stdlib.h> |