mescc: Mes C Library: Avoid type/size_t conflicts.
* include/alloca.h: Remove typedefs, include sys/types.h. * include/stdint.h: Likewise. * include/string.h: Likewise.
This commit is contained in:
parent
0904a288c7
commit
bf4af81664
|
@ -29,11 +29,7 @@
|
||||||
|
|
||||||
#else // ! SYSTEM_LIBC
|
#else // ! SYSTEM_LIBC
|
||||||
|
|
||||||
#ifndef __MES_SIZE_T
|
#include <sys/types.h>
|
||||||
#define __MES_SIZE_T
|
|
||||||
#undef size_t
|
|
||||||
typedef unsigned long size_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if _ALLOCA_UNSIGNED
|
#if _ALLOCA_UNSIGNED
|
||||||
void *alloca (unsigned size);
|
void *alloca (unsigned size);
|
||||||
|
|
|
@ -58,28 +58,10 @@ typedef int int32_t;
|
||||||
typedef unsigned long long uint64_t;
|
typedef unsigned long long uint64_t;
|
||||||
typedef long long int64_t;
|
typedef long long int64_t;
|
||||||
|
|
||||||
#ifndef __MES_SIZE_T
|
|
||||||
#define __MES_SIZE_T
|
|
||||||
#undef size_t
|
|
||||||
typedef unsigned long size_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __MES_INTPTR_T
|
|
||||||
#define __MES_INTPTR_T
|
|
||||||
#undef intptr_t
|
|
||||||
typedef long intptr_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// FIXME
|
|
||||||
typedef int intmax_t;
|
typedef int intmax_t;
|
||||||
typedef unsigned uintmax_t;
|
typedef unsigned uintmax_t;
|
||||||
typedef unsigned* uintptr_t;
|
|
||||||
|
|
||||||
#ifndef __MES_PTRDIFF_T
|
#include <sys/types.h>
|
||||||
#define __MES_PTRDIFF_T
|
|
||||||
#undef ptrdiff_t
|
|
||||||
typedef long ptrdiff_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define CHAR_BIT 8
|
#define CHAR_BIT 8
|
||||||
#define CHAR_MAX 255
|
#define CHAR_MAX 255
|
||||||
|
|
|
@ -29,21 +29,7 @@
|
||||||
|
|
||||||
#else // ! SYSTEM_LIBC
|
#else // ! SYSTEM_LIBC
|
||||||
|
|
||||||
#ifndef NULL
|
#include <sys/types.h>
|
||||||
#define NULL 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __MES_SIZE_T
|
|
||||||
#define __MES_SIZE_T
|
|
||||||
#undef size_t
|
|
||||||
typedef unsigned long size_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __MES_SSIZE_T
|
|
||||||
#define __MES_SSIZE_T
|
|
||||||
#undef ssize_t
|
|
||||||
typedef long ssize_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void *memchr (void const *block, int c, size_t size);
|
void *memchr (void const *block, int c, size_t size);
|
||||||
void *memcpy (void *dest, void const *src, size_t n);
|
void *memcpy (void *dest, void const *src, size_t n);
|
||||||
|
|
Loading…
Reference in a new issue