From 379c96c90c5cd1b343b5aa531744136b3a086e79 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Wed, 16 Jan 2019 13:21:36 +0100 Subject: [PATCH] lib: Support gcc-4.6.4: Fix uintptr_t, add [u]intmax_t. * include/stdint.h: Fix uintptr_t, add [u]intmax_t. --- include/stdint.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/stdint.h b/include/stdint.h index 0f85d6b0..0ab0a8e3 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -63,6 +63,24 @@ typedef long long int64_t; typedef int intmax_t; typedef unsigned uintmax_t; +#ifndef __MES_SIZE_T +#define __MES_SIZE_T +#undef size_t +typedef unsigned long size_t; +#endif + +#ifndef __MES_INTPTR_T +#define __MES_INTPTR_T +#undef intptr_t +typedef long intptr_t; +#endif + +#ifndef __MES_UINTPTR_T +#define __MES_UINTPTR_T +#undef uintptr_t +typedef long uintptr_t; +#endif + #include #define CHAR_BIT 8