[libc-commits] [libc] [libc] implement sigsetjmp/siglongjmp for x86-64 (PR #136072)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Wed Apr 23 10:01:38 PDT 2025
================
@@ -0,0 +1,15 @@
+//===-- Definition of macros for offsetof ---------------------------------===//
+//
+// 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_OFFSETOF_MACROS_H
+#define LLVM_LIBC_HDR_OFFSETOF_MACROS_H
+
+#define __need_offsetof
+#include <stddef.h>
----------------
michaelrj-google wrote:
```suggestion
#ifdef LIBC_FULL_BUILD
#include "include/llvm-libc-macros/offsetof-macros.h"
#else // Overlay mode
#define __need_offsetof
#include <stddef.h>
#endif // LLVM_LIBC_FULL_BUILD
```
https://github.com/llvm/llvm-project/pull/136072
More information about the libc-commits
mailing list