Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions components/libc/compilers/common/include/sys/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
typedef __time64_t time_t;
#endif /* _WIN32 */

#if defined(__GNUC__)
typedef long long time_t;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gcc 一般都有time_t 的定义吧? 或许可以考虑加上类似于 112 行的重复定义保护。

image

typedef long suseconds_t;
#endif/* arm-none-eabi-gcc */

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
Expand Down
Loading