[libc-commits] [libc] [libc][annex_k] Add errno_t. (PR #163094)
Victor Campos via libc-commits
libc-commits at lists.llvm.org
Thu Mar 5 05:05:33 PST 2026
================
@@ -0,0 +1,18 @@
+//===-- Proxy for errno_t -------------------------------------------------===//
+//
+// 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_HDR_TYPES_ERRNO_T_H
+#define LLVM_LIBC_HDR_TYPES_ERRNO_T_H
+
+#define LIBC_HAS_ANNEX_K
+
+#include "include/llvm-libc-types/errno_t.h"
----------------
vhscampos wrote:
Looking at the other headers under `hdr\`, I noticed that inclusions that should only happen in full build mode are guarded inside `#ifdef LIBC_FULL_BUILD`.
This inclusion in line 14 seems to be such a case, going by how it is described in CMakeLists: it is an argument to FULL_BUILD_DEPENDS.
Therefore shouldn't you add an #ifdef LIBC_FULL_BUILD` here?
https://github.com/llvm/llvm-project/pull/163094
More information about the libc-commits
mailing list