From 0904a288c7585d1278bbc2cbb73a6e6ab401999d Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Wed, 17 Jul 2019 22:54:13 +0200 Subject: [PATCH] mescc: Support tcc: Add intptr_t, uintptr_t. * include/sys/types.h (intptr_t, uintptr_t): Add typedef. --- include/sys/types.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/sys/types.h b/include/sys/types.h index 6fc0aa3d..510f512b 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -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