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
This commit is contained in:
Frank Gevaerts 2010-05-06 23:53:01 +00:00
parent 4e09bd462a
commit ca52f94184

View file

@ -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));