You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/04 00:21:43 UTC
(nuttx) 02/07: sim/types: fix windows64 build error
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 43de53c93f4254d0fe25f9756b1665c0cd327777
Author: chenxiaoyi <ch...@xiaomi.com>
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 <ch...@xiaomi.com>
---
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;