This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch releases/12.7 in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit d309d49cae2008c19017cf4414c9eb66617d876f Author: chenxiaoyi <[email protected]> AuthorDate: Tue Jul 2 15:02:41 2024 +0800 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 <[email protected]> --- 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;
