Skip to content

Commit 3392d7f

Browse files
committed
[libc][newlib]重定义CLOCKS_PER_SEC宏
1 parent e19873d commit 3392d7f

File tree

1 file changed

+12
-0
lines changed
  • components/libc/compilers/newlib/machine

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#ifndef _MACHTIME_H_
2+
#define _MACHTIME_H_
3+
4+
#include <rtconfig.h>
5+
#define _CLOCKS_PER_SEC_ RT_TICK_PER_SECOND
6+
7+
#ifdef __SPU__
8+
#include <sys/_timespec.h>
9+
int nanosleep (const struct timespec *, struct timespec *);
10+
#endif
11+
12+
#endif /* _MACHTIME_H_ */

0 commit comments

Comments
 (0)