Pārlūkot izejas kodu

[libc][newlib]重定义CLOCKS_PER_SEC宏

Meco Man 4 gadi atpakaļ
vecāks
revīzija
3392d7fe50
1 mainītis faili ar 12 papildinājumiem un 0 dzēšanām
  1. 12 0
      components/libc/compilers/newlib/machine/time.h

+ 12 - 0
components/libc/compilers/newlib/machine/time.h

@@ -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_ */