[libc-commits] [libc] [libc] add stdlib.h header to the _Exit func proxy in full build (PR #114718)
via libc-commits
libc-commits at lists.llvm.org
Sun Nov 3 13:37:16 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Job Henandez Lara (Jobhdez)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/114718.diff
1 Files Affected:
- (modified) libc/hdr/func/_Exit.h (+2-1)
``````````diff
diff --git a/libc/hdr/func/_Exit.h b/libc/hdr/func/_Exit.h
index 575b0426e508c6..e024a651a50bcf 100644
--- a/libc/hdr/func/_Exit.h
+++ b/libc/hdr/func/_Exit.h
@@ -10,7 +10,8 @@
#define LLVM_LIBC_HDR_FUNC_EXIT_H
#ifdef LIBC_FULL_BUILD
-extern "C" void _Exit(int);
+// We will use the `_Exit` declaration from our generated stdlib.h
+#include <stdlib.h>
#else // Overlay mode
``````````
</details>
https://github.com/llvm/llvm-project/pull/114718
More information about the libc-commits
mailing list