From d309d49cae2008c19017cf4414c9eb66617d876f Mon Sep 17 00:00:00 2001 From: chenxiaoyi Date: Tue, 2 Jul 2024 15:02:41 +0800 Subject: [PATCH] sim/types: fix windows64 build error nuttx\include\sys\types.h(133,22): error C2371: 'size_t': redefinition; different basic types Signed-off-by: chenxiaoyi --- arch/sim/include/types.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/sim/include/types.h b/arch/sim/include/types.h index 5e6083b753..4ac23cdacb 100644 --- a/arch/sim/include/types.h +++ b/arch/sim/include/types.h @@ -119,6 +119,9 @@ typedef __SIZE_TYPE__ _size_t; #elif defined(CONFIG_ARCH_SIZET_LONG) typedef signed long _ssize_t; typedef unsigned long _size_t; +#elif defined(_WIN64) +typedef signed long long _ssize_t; +typedef unsigned long long _size_t; #else typedef signed int _ssize_t; typedef unsigned int _size_t;