[libc-commits] [libc] [libc] Add proxy header for __sighandler_t type (PR #107354)
via libc-commits
libc-commits at lists.llvm.org
Thu Sep 5 10:42:32 PDT 2024
================
@@ -0,0 +1,22 @@
+//===-- Definition of macros from __sighandler_t.h ------------------------===//
+//
+// 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_SIGHANDLER_T_H
+#define LLVM_LIBC_HDR_SIGHANDLER_T_H
+
+#ifdef LIBC_FULL_BUILD
+
+#include "include/llvm-libc-types/__sighandler_t.h"
+
----------------
lntue wrote:
can you add `using sighandler_t = __sighandler_t;` here, and change all the usages to use `sighandler_t` instead of `__sighandler_t`, since the former is the official name defined in `signal.h`.
https://github.com/llvm/llvm-project/pull/107354
More information about the libc-commits
mailing list