mescc: Tinycc support: headers.

* mlibc/include/string.h (ssize_t): New type.
* mlibc/include/unistd.h (ssize_t): New type.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-17 22:03:11 +02:00
parent 8ec7e1225b
commit 16b9a21712
2 changed files with 12 additions and 2 deletions

View File

@ -30,7 +30,12 @@
#ifndef __MES_SIZE_T
#define __MES_SIZE_T
typedef long size_t;
typedef unsigned long size_t;
#endif
#ifndef __MES_SSIZE_T
#define __MES_SSIZE_T
typedef long ssize_t;
#endif
size_t strlen (char const*);

View File

@ -30,7 +30,12 @@
#ifndef __MES_SIZE_T
#define __MES_SIZE_T
typedef long size_t;
typedef unsigned long size_t;
#endif
#ifndef __MES_SSIZE_T
#define __MES_SSIZE_T
typedef long ssize_t;
#endif
int access (char const *s, int mode);