diff options
| author | Bernard Xiong <[email protected]> | 2019-03-29 08:53:21 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-03-29 08:53:21 +0800 |
| commit | eabb04ed3de48e2fd8bdef6067b34607cff34deb (patch) | |
| tree | c252f786bfcccfc3f8e51249d08e47334c1cb6e2 /components/libc/compilers/armlibc | |
| parent | 437b0da91ec22b4feeb17b5fc9d53a35e179bd49 (diff) | |
| parent | 6b7335a36f644b79972da39f8e60ebe7d78d9acd (diff) | |
Merge pull request #2491 from lymzzyh/size_t
[libc]fix size_t ssize_t
Diffstat (limited to 'components/libc/compilers/armlibc')
| -rw-r--r-- | components/libc/compilers/armlibc/sys/types.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/libc/compilers/armlibc/sys/types.h b/components/libc/compilers/armlibc/sys/types.h index 4c76dfc429..001ace4dd2 100644 --- a/components/libc/compilers/armlibc/sys/types.h +++ b/components/libc/compilers/armlibc/sys/types.h @@ -15,6 +15,10 @@ typedef rt_int32_t clockid_t; typedef rt_int32_t key_t; /* Used for interprocess communication. */ typedef rt_int32_t pid_t; /* Used for process IDs and process group IDs. */ -typedef signed long ssize_t; /* Used for a count of bytes or an error indication. */ +#ifndef ARCH_CPU_64BIT +typedef signed int ssize_t; /* Used for a count of bytes or an error indication. */ +#else +typedef long signed int ssize_t; /* Used for a count of bytes or an error indication. */ +#endif #endif |
