summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-05-06 23:53:01 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-05-06 23:53:01 +0000
commitca52f94184354cad645e873264d720e90c2a9d22 (patch)
tree52d368148c5941db6128cf7debaaed009d0cdab3
parent4e09bd462aa2e6b0474d057cec4901158cb1ef91 (diff)
downloadrockbox-ca52f94184354cad645e873264d720e90c2a9d22.tar.gz
rockbox-ca52f94184354cad645e873264d720e90c2a9d22.tar.bz2
rockbox-ca52f94184354cad645e873264d720e90c2a9d22.zip
Define size_t the way the gcc/glibc people intended
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25862 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/libc/include/string.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/firmware/libc/include/string.h b/firmware/libc/include/string.h
index d84c3e3b66..f4914eadff 100644
--- a/firmware/libc/include/string.h
+++ b/firmware/libc/include/string.h
@@ -13,18 +13,9 @@ extern "C" {
#include "_ansi.h"
-#if !defined(__size_t_defined)&& !defined(_SIZE_T_) && !defined(size_t) && !defined(_SIZE_T_DECLARED)
-#define __size_t_defined
-#define _SIZE_T
-#define _SIZE_T_
-#define _SIZE_T_DECLARED
-#define size_t size_t
-typedef unsigned long size_t;
-#endif
-
-#ifndef NULL
-#define NULL ((void*)0)
-#endif
+#define __need_size_t
+#define __need_NULL
+#include <stddef.h>
_PTR _EXFUN(memchr,(const _PTR, int, size_t));
int _EXFUN(memcmp,(const _PTR, const _PTR, size_t));