[libc-commits] [libc] Add basic char*_t support for libc (partial WG14 N2653) (PR #90360)

via libc-commits libc-commits at lists.llvm.org
Mon Apr 29 12:08:50 PDT 2024


Fabian =?utf-8?q?Keßler?= <fabian_kessler at gmx.de>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/90360 at github.com>


================
@@ -0,0 +1,17 @@
+//===-- Definition of clock_t type ----------------------------------------===//
+//
+// 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_TYPES_CHAR8_T_H
+#define LLVM_LIBC_TYPES_CHAR8_T_H
+
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
+#include <stdint.h>
----------------
lntue wrote:

Use `#include "../llvm-libc-macros/stdint-macros.h"` and add corresponding dependency.  Similarly for `char16_t.h`.

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


More information about the libc-commits mailing list