[libc-commits] [libc] [llvm] [libc][windows] start time API implementation (PR #117775)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Tue Dec 3 10:27:47 PST 2024
================
@@ -0,0 +1,87 @@
+//===--- clock_gettime windows implementation -------------------*- 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/__support/time/clock_gettime.h"
+#include "include/llvm-libc-macros/windows/time-macros-ext.h"
+#include "src/__support/CPP/atomic.h"
+#include "src/__support/CPP/bit.h"
+#include "src/__support/time/units.h"
+#include <Windows.h>
+
+#ifdef __clang__
+#define UNINITIALIZED [[clang::uninitialized]]
+#else
+#define UNINITIALIZED
+#endif
----------------
michaelrj-google wrote:
is this necessary? AFAIK we don't support any non-clang compilers on windows.
https://github.com/llvm/llvm-project/pull/117775
More information about the libc-commits
mailing list