Skip to content

Commit 24221bd

Browse files
committed
[libc] modify clock_conversion related files
1 parent 5206df2 commit 24221bd

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

libc/src/__support/time/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ add_object_library(
2020
libc.src.__support.time.${LIBC_TARGET_OS}.clock_gettime
2121
)
2222

23+
add_header_library(
24+
clock_conversion
25+
HDRS
26+
clock_conversion.h
27+
DEPENDS
28+
.clock_gettime
29+
libc.src.__support.time.units
30+
)
31+
2332
if(TARGET libc.src.__support.time.${LIBC_TARGET_OS}.clock_settime)
2433
add_object_library(
2534
clock_settime

libc/src/__support/time/clock_conversion.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------===//
88

9-
#ifndef LLVM_LIBC_SRC___SUPPORT_TIME_LINUX_CLOCK_CONVERSION_H
10-
#define LLVM_LIBC_SRC___SUPPORT_TIME_LINUX_CLOCK_CONVERSION_H
9+
#ifndef LLVM_LIBC_SRC___SUPPORT_TIME_CLOCK_CONVERSION_H
10+
#define LLVM_LIBC_SRC___SUPPORT_TIME_CLOCK_CONVERSION_H
1111

1212
#include "src/__support/macros/config.h"
1313
#include "src/__support/time/clock_gettime.h"
@@ -62,4 +62,4 @@ LIBC_INLINE timespec convert_clock(timespec input, clockid_t from,
6262
} // namespace internal
6363
} // namespace LIBC_NAMESPACE_DECL
6464

65-
#endif // LLVM_LIBC_SRC___SUPPORT_TIME_LINUX_CLOCK_CONVERSION_H
65+
#endif // LLVM_LIBC_SRC___SUPPORT_TIME_CLOCK_CONVERSION_H

libc/src/__support/time/linux/CMakeLists.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@ add_object_library(
2929
libc.src.__support.OSUtil.osutil
3030
)
3131

32-
add_header_library(
33-
clock_conversion
34-
HDRS
35-
clock_conversion.h
36-
DEPENDS
37-
.clock_gettime
38-
libc.src.__support.time.units
39-
)
4032

4133
add_header_library(
4234
abs_timeout
@@ -53,7 +45,7 @@ add_header_library(
5345
HDRS
5446
monotonicity.h
5547
DEPENDS
56-
.clock_conversion
48+
libc.src.__support.time.clock_conversion
5749
.abs_timeout
5850
libc.hdr.time_macros
5951
)

0 commit comments

Comments
 (0)