mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-03-02 10:15:26 +08:00
[libc][newlib]重定义CLOCKS_PER_SEC宏
This commit is contained in:
parent
e19873db6d
commit
3392d7fe50
12
components/libc/compilers/newlib/machine/time.h
Normal file
12
components/libc/compilers/newlib/machine/time.h
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#ifndef _MACHTIME_H_
|
||||||
|
#define _MACHTIME_H_
|
||||||
|
|
||||||
|
#include <rtconfig.h>
|
||||||
|
#define _CLOCKS_PER_SEC_ RT_TICK_PER_SECOND
|
||||||
|
|
||||||
|
#ifdef __SPU__
|
||||||
|
#include <sys/_timespec.h>
|
||||||
|
int nanosleep (const struct timespec *, struct timespec *);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _MACHTIME_H_ */
|
Loading…
x
Reference in New Issue
Block a user