aboutsummaryrefslogtreecommitdiff
path: root/libiberty/memcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/memcpy.c')
-rw-r--r--libiberty/memcpy.c4
1 files changed, 4 insertions, 0 deletions
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);