Skip to content

Commit fcffad6

Browse files
committed
removed localtime_utc function and fixed localtime function
1 parent 739ae83 commit fcffad6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

libc/src/time/baremetal/localtime.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313

1414
namespace LIBC_NAMESPACE_DECL {
1515

16-
extern "C" bool __llvm_libc_localtime_utc(struct timespec *ts);
17-
18-
LLVM_LIBC_FUNCTION(int, localtime, (struct timespec * ts, int base)) {
19-
(void)ts;
20-
return base;
16+
LLVM_LIBC_FUNCTION(time_t, localtime, (time_t *time)) {
17+
(void)time;
18+
return NULL;
2119
}
2220

2321
} // namespace LIBC_NAMESPACE_DECL

0 commit comments

Comments
 (0)