[libc-commits] [libc] [libc][annex_k] Add errno_t. (PR #163094)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Thu Oct 16 14:52:14 PDT 2025
================
@@ -1,14 +1,18 @@
-//===-- Definition of in_addr_t type --------------------------------------===//
+//===-- Definition of type 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_TYPES_IN_ADDR_T_H
-#define LLVM_LIBC_TYPES_IN_ADDR_T_H
+#ifndef LLVM_LIBC_INCLUDE_LLVM_LIBC_TYPES_ERRNO_T_H
+#define LLVM_LIBC_INCLUDE_LLVM_LIBC_TYPES_ERRNO_T_H
-typedef __UINT32_TYPE__ in_addr_t;
+#ifdef LIBC_HAS_ANNEX_K
-#endif // LLVM_LIBC_TYPES_IN_ADDR_T_H
+typedef int errno_t;
+
+#endif // LIBC_HAS_ANNEX_K
----------------
michaelrj-google wrote:
ah, that makes sense. Could you add a comment explaining that?
https://github.com/llvm/llvm-project/pull/163094
More information about the libc-commits
mailing list