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 <chenxiaoyi@xiaomi.com>
This commit is contained in:
chenxiaoyi 2024-07-02 15:02:41 +08:00 committed by Xiang Xiao
parent 3100deda9d
commit d309d49cae

View File

@ -119,6 +119,9 @@ typedef __SIZE_TYPE__ _size_t;
#elif defined(CONFIG_ARCH_SIZET_LONG) #elif defined(CONFIG_ARCH_SIZET_LONG)
typedef signed long _ssize_t; typedef signed long _ssize_t;
typedef unsigned long _size_t; typedef unsigned long _size_t;
#elif defined(_WIN64)
typedef signed long long _ssize_t;
typedef unsigned long long _size_t;
#else #else
typedef signed int _ssize_t; typedef signed int _ssize_t;
typedef unsigned int _size_t; typedef unsigned int _size_t;