[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

Зишан Мирза via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 6 09:51:16 PDT 2024


================
@@ -0,0 +1,21 @@
+//===-- Implementation header of ctime_r ------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC_TIME_CTIME_R_H
+#define LLVM_LIBC_SRC_TIME_CTIME_R_H
+
+#include "src/__support/macros/config.h"
+#include <time.h>
----------------
zimirza wrote:

Sure, I removed `time.h` and added `hdr/types/time_t.h`, and updated cmake dependencies.

https://github.com/llvm/llvm-project/pull/107285


More information about the cfe-commits mailing list