summaryrefslogtreecommitdiff
path: root/firmware/common
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-04-28 20:39:44 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-04-28 20:39:44 +0000
commit9c0abbf838d1d88c406dbf80c3b3f36fb7b76c39 (patch)
tree01b923bd4bcfe8a7177e2025fe9d84fe12ff63c9 /firmware/common
parentcbd7fa40f6ba6d7c484299cbab06795196479ab4 (diff)
downloadrockbox-9c0abbf838d1d88c406dbf80c3b3f36fb7b76c39.tar.gz
rockbox-9c0abbf838d1d88c406dbf80c3b3f36fb7b76c39.zip
Added #include <string.h> to memmove.c, memcpy.c and strcat.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17285 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/memcpy.c5
-rw-r--r--firmware/common/memmove.c3
-rw-r--r--firmware/common/strcat.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/firmware/common/memcpy.c b/firmware/common/memcpy.c
index e9b8e82bdd..b77f27379d 100644
--- a/firmware/common/memcpy.c
+++ b/firmware/common/memcpy.c
@@ -34,8 +34,7 @@ QUICKREF
34 34
35#include "config.h" 35#include "config.h"
36#include <_ansi.h> 36#include <_ansi.h>
37#include <stddef.h> 37#include <string.h>
38#include <limits.h>
39 38
40/* Nonzero if either X or Y is not aligned on a "long" boundary. */ 39/* Nonzero if either X or Y is not aligned on a "long" boundary. */
41#define UNALIGNED(X, Y) \ 40#define UNALIGNED(X, Y) \
@@ -47,7 +46,7 @@ QUICKREF
47/* How many bytes are copied each iteration of the word copy loop. */ 46/* How many bytes are copied each iteration of the word copy loop. */
48#define LITTLEBLOCKSIZE (sizeof (long)) 47#define LITTLEBLOCKSIZE (sizeof (long))
49 48
50/* Threshhold for punting to the byte copier. */ 49/* Threshold for punting to the byte copier. */
51#define TOO_SMALL(LEN) ((LEN) < BIGBLOCKSIZE) 50#define TOO_SMALL(LEN) ((LEN) < BIGBLOCKSIZE)
52 51
53_PTR 52_PTR
diff --git a/firmware/common/memmove.c b/firmware/common/memmove.c
index 761e9eb104..599cbc9c01 100644
--- a/firmware/common/memmove.c
+++ b/firmware/common/memmove.c
@@ -37,8 +37,7 @@ QUICKREF
37 37
38#include "config.h" 38#include "config.h"
39#include <_ansi.h> 39#include <_ansi.h>
40#include <stddef.h> 40#include <string.h>
41#include <limits.h>
42 41
43/* Nonzero if either X or Y is not aligned on a "long" boundary. */ 42/* Nonzero if either X or Y is not aligned on a "long" boundary. */
44#define UNALIGNED(X, Y) \ 43#define UNALIGNED(X, Y) \
diff --git a/firmware/common/strcat.c b/firmware/common/strcat.c
index e3366d7405..221529519c 100644
--- a/firmware/common/strcat.c
+++ b/firmware/common/strcat.c
@@ -1,3 +1,5 @@
1#include <string.h>
2
1char *strcat(char *s1, 3char *strcat(char *s1,
2 const char *s2) 4 const char *s2)
3{ 5{