[libc-commits] [libc] [libc] Implement `timespec_get` (PR #116102)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Nov 14 08:45:31 PST 2024


================
@@ -0,0 +1,21 @@
+//===-- Implementation header of timespec_get -------------------*- 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_TIMESPEC_GET_H
+#define LLVM_LIBC_SRC_TIME_TIMESPEC_GET_H
+
+#include "src/__support/macros/config.h"
+#include <time.h>
----------------
nickdesaulniers wrote:

```suggestion
#include "hdr/types/struct_timespec.h"
```
Then sort includes.

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


More information about the libc-commits mailing list