mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 04:53:47 +08:00
[libc][time] 解决部分编译平台CLOCKS_PER_SEC无法被重新定义的问题
This commit is contained in:
parent
b1beed20ae
commit
721c08dc61
@ -24,6 +24,9 @@ typedef __time64_t time_t;
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef CLOCKS_PER_SEC
|
||||
#define CLOCKS_PER_SEC RT_TICK_PER_SECOND
|
||||
|
||||
/* timezone */
|
||||
#define DST_NONE 0 /* not on dst */
|
||||
#define DST_USA 1 /* USA style dst */
|
||||
|
Loading…
x
Reference in New Issue
Block a user