summaryrefslogtreecommitdiffstats
path: root/firmware/libc
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-06-22 18:34:03 +0000
committerThomas Martitz <kugel@rockbox.org>2010-06-22 18:34:03 +0000
commitf32bd593c426755a140556ed1b5230447e5da726 (patch)
tree281f06c98f1f5408d8bf239ab722ff32e51994f9 /firmware/libc
parentbe66e4d64269176848d4f82d95596745dc17679c (diff)
downloadrockbox-f32bd593c426755a140556ed1b5230447e5da726.tar.gz
rockbox-f32bd593c426755a140556ed1b5230447e5da726.tar.bz2
rockbox-f32bd593c426755a140556ed1b5230447e5da726.zip
Add an advanced build option to force compiling and linking our reduced C library (probably useful for the sim).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27059 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/libc')
-rw-r--r--firmware/libc/memchr.c1
-rw-r--r--firmware/libc/memcmp.c2
-rw-r--r--firmware/libc/memcpy.c2
-rw-r--r--firmware/libc/strchr.c1
-rw-r--r--firmware/libc/strcmp.c1
-rw-r--r--firmware/libc/strcpy.c1
-rw-r--r--firmware/libc/strlen.c2
-rw-r--r--firmware/libc/strncmp.c1
-rw-r--r--firmware/libc/strrchr.c1
9 files changed, 9 insertions, 3 deletions
diff --git a/firmware/libc/memchr.c b/firmware/libc/memchr.c
index 26bdb9eea3..8b6b4d69d9 100644
--- a/firmware/libc/memchr.c
+++ b/firmware/libc/memchr.c
@@ -35,6 +35,7 @@ QUICKREF
#include <string.h>
#include <limits.h>
+#include "_ansi.h" /* for _DEFUN */
/* Nonzero if X is not aligned on a "long" boundary. */
#define UNALIGNED(X) ((long)X & (sizeof (long) - 1))
diff --git a/firmware/libc/memcmp.c b/firmware/libc/memcmp.c
index 1535fcf5b5..c2fa1bf6b7 100644
--- a/firmware/libc/memcmp.c
+++ b/firmware/libc/memcmp.c
@@ -37,7 +37,7 @@ QUICKREF
*/
#include <string.h>
-
+#include "_ansi.h" /* for _DEFUN */
/* Nonzero if either X or Y is not aligned on a "long" boundary. */
#define UNALIGNED(X, Y) \
diff --git a/firmware/libc/memcpy.c b/firmware/libc/memcpy.c
index a89ac3c557..c5456ab41f 100644
--- a/firmware/libc/memcpy.c
+++ b/firmware/libc/memcpy.c
@@ -33,7 +33,7 @@ QUICKREF
*/
#include "config.h"
-#include <_ansi.h>
+#include "_ansi.h" /* for _DEFUN */
#include <string.h>
/* Nonzero if either X or Y is not aligned on a "long" boundary. */
diff --git a/firmware/libc/strchr.c b/firmware/libc/strchr.c
index 96acf5edf6..ada6e2d098 100644
--- a/firmware/libc/strchr.c
+++ b/firmware/libc/strchr.c
@@ -35,6 +35,7 @@ QUICKREF
#include <string.h>
#include <limits.h>
+#include "_ansi.h" /* for _DEFUN */
/* Nonzero if X is not aligned on a "long" boundary. */
#define UNALIGNED(X) ((long)X & (sizeof (long) - 1))
diff --git a/firmware/libc/strcmp.c b/firmware/libc/strcmp.c
index bbbf4b174a..d540fae7dd 100644
--- a/firmware/libc/strcmp.c
+++ b/firmware/libc/strcmp.c
@@ -37,6 +37,7 @@ QUICKREF
#include <string.h>
#include <limits.h>
+#include "_ansi.h" /* for _DEFUN */
/* Nonzero if either X or Y is not aligned on a "long" boundary. */
#define UNALIGNED(X, Y) \
diff --git a/firmware/libc/strcpy.c b/firmware/libc/strcpy.c
index 077ae73cc6..035e2bda9e 100644
--- a/firmware/libc/strcpy.c
+++ b/firmware/libc/strcpy.c
@@ -34,6 +34,7 @@ QUICKREF
#include <string.h>
#include <limits.h>
+#include "_ansi.h" /* for _DEFUN */
/*SUPPRESS 560*/
/*SUPPRESS 530*/
diff --git a/firmware/libc/strlen.c b/firmware/libc/strlen.c
index 4d33eafce6..649df6764b 100644
--- a/firmware/libc/strlen.c
+++ b/firmware/libc/strlen.c
@@ -32,7 +32,7 @@ QUICKREF
*/
#include "config.h"
-#include <_ansi.h>
+#include "_ansi.h"
#include <string.h>
#include <limits.h>
diff --git a/firmware/libc/strncmp.c b/firmware/libc/strncmp.c
index b1d8d9d43a..315fae810a 100644
--- a/firmware/libc/strncmp.c
+++ b/firmware/libc/strncmp.c
@@ -38,6 +38,7 @@ QUICKREF
#include <string.h>
#include <limits.h>
+#include "_ansi.h" /* for _DEFUN */
/* Nonzero if either X or Y is not aligned on a "long" boundary. */
#define UNALIGNED(X, Y) \
diff --git a/firmware/libc/strrchr.c b/firmware/libc/strrchr.c
index 31b0d049b3..0489edd499 100644
--- a/firmware/libc/strrchr.c
+++ b/firmware/libc/strrchr.c
@@ -34,6 +34,7 @@ QUICKREF
*/
#include <string.h>
+#include "_ansi.h" /* for _DEFUN */
char *
_DEFUN (strrchr, (s, i),