diff options
| author | chenjh <[email protected]> | 2021-02-26 18:23:52 +0800 |
|---|---|---|
| committer | chenjh <[email protected]> | 2021-02-26 18:23:52 +0800 |
| commit | 055c3d3e1d75fedac44ffb41943350d9844f5b7e (patch) | |
| tree | ab7ee8660930048e93cc2dcc944db40c59f08b5d /components/libc/compilers/dlib/sys | |
| parent | 5f17cf9204e501d971cd28486e0a7193d2f1fae4 (diff) | |
[Update] Sync from v4.0.3
Diffstat (limited to 'components/libc/compilers/dlib/sys')
| -rw-r--r-- | components/libc/compilers/dlib/sys/types.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/components/libc/compilers/dlib/sys/types.h b/components/libc/compilers/dlib/sys/types.h index 001ace4dd2..7dbeddcaa9 100644 --- a/components/libc/compilers/dlib/sys/types.h +++ b/components/libc/compilers/dlib/sys/types.h @@ -5,20 +5,21 @@ * * Change Logs: * Date Author Notes + * 2020-12-16 Meco Man add useconds_t */ #ifndef __TYPES_H__ #define __TYPES_H__ #include <stdint.h> -#include <rtthread.h> -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 int32_t clockid_t; +typedef int32_t key_t; /* Used for interprocess communication. */ +typedef int32_t pid_t; /* Used for process IDs and process group IDs. */ #ifndef ARCH_CPU_64BIT -typedef signed int ssize_t; /* Used for a count of bytes or an error indication. */ +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. */ +typedef long signed int ssize_t; /* Used for a count of bytes or an error indication. */ #endif +typedef unsigned long useconds_t; /* microseconds (unsigned) */ #endif |
