mescc: Tinycc support: stdint.h: declare size_t.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 27 Aug 2017 09:29:07 +0000 (11:29 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 27 Aug 2017 09:29:07 +0000 (11:29 +0200)
* mlibc/include/stdint.h (size_t)[!__MES_SIZE_T]: Declare.

mlibc/include/stdint.h

index a182bf6536f93fc1adc471199bf7caf7c7d5c7d8..28f6b7442d5d1e971549f13e88ce7ca02b0b8c05 100644 (file)
@@ -38,6 +38,11 @@ typedef int int32_t;
 typedef unsigned long long uint64_t;
 typedef long long int64_t;
 
+#ifndef __MES_SIZE_T
+#define __MES_SIZE_T
+typedef unsigned long size_t;
+#endif
+
 // FIXME
 typedef int intmax_t;
 typedef unsigned uintmax_t;