mescc: Support tcc: Add intptr_t, uintptr_t.
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 17 Jul 2019 20:54:13 +0000 (22:54 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 17 Jul 2019 20:54:13 +0000 (22:54 +0200)
* include/sys/types.h (intptr_t, uintptr_t): Add typedef.

include/sys/types.h

index 6fc0aa3dec03ab87fde859246668cf69ac8ec1a2..510f512bcb2370eb475de6af6d8e8aa4057823cb 100644 (file)
@@ -75,10 +75,13 @@ typedef unsigned long ino_t;
 typedef unsigned long long ino64_t;
 #endif
 
-#ifndef __MES_INTPTR_T
+#if !defined (__MES_INTPTR_T) && !defined (__intptr_t_defined)
 #define __MES_INTPTR_T
+#define __intptr_t_defined
 #undef intptr_t
 typedef long intptr_t;
+#undef uintptr_t
+typedef unsigned long uintptr_t;
 #endif
 
 #ifndef __MES_OFF_T