diff options
| author | ZYH <[email protected]> | 2019-03-22 14:20:23 +0800 |
|---|---|---|
| committer | ZYH <[email protected]> | 2019-03-28 17:18:40 +0800 |
| commit | 6b7335a36f644b79972da39f8e60ebe7d78d9acd (patch) | |
| tree | 79aba4b58a0f80378bff8a53ca6301a90124fad9 /components/libc/compilers/dlib/sys | |
| parent | 48e0b419e71463f1eb7873f1522148bd4f1fa3cf (diff) | |
[libc]fix size_t ssize_t
Diffstat (limited to 'components/libc/compilers/dlib/sys')
| -rw-r--r-- | components/libc/compilers/dlib/sys/types.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/libc/compilers/dlib/sys/types.h b/components/libc/compilers/dlib/sys/types.h index 4c76dfc429..001ace4dd2 100644 --- a/components/libc/compilers/dlib/sys/types.h +++ b/components/libc/compilers/dlib/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 |
