mescc: Tinycc support: headers.
authorJan Nieuwenhuizen <janneke@gnu.org>
Mon, 17 Jul 2017 20:03:11 +0000 (22:03 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 26 Jul 2017 09:36:08 +0000 (11:36 +0200)
* mlibc/include/string.h (ssize_t): New type.
* mlibc/include/unistd.h (ssize_t): New type.

mlibc/include/string.h
mlibc/include/unistd.h

index 42fe7c69b1990bdff514139c93c047d351e73431..104a359d65847b0850b0e614ddc63e8d2cf3b194 100644 (file)
 
 #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*);
index 0ba84e5769d07676cb567deedba6177aa7bd0ed4..fdb6808caa7f951c352812c8cc253e26a0fcce52 100644 (file)
 
 #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);