提交 373016e9 编写于 作者: A Andrew Morton 提交者: Linus Torvalds

[PATCH] time.h: remove ifdefs

Remove these ifdefs - there's no need to have more than one definition of
these multipliers anywhere.

Cc: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 84f902c0
......@@ -29,18 +29,9 @@ struct timezone {
/* Parameters used to convert the timespec values */
#define MSEC_PER_SEC (1000L)
#ifndef USEC_PER_SEC
#define USEC_PER_SEC (1000000L)
#endif
#ifndef NSEC_PER_SEC
#define NSEC_PER_SEC (1000000000L)
#endif
#ifndef NSEC_PER_USEC
#define NSEC_PER_USEC (1000L)
#endif
static __inline__ int timespec_equal(struct timespec *a, struct timespec *b)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册