[libc-commits] [libc] [libc] Use `LIBC_COPT_PUBLIC_PACKAGING` for hermetic and integration tests. (PR #79319)

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Fri Jan 26 00:56:02 PST 2024


================
@@ -11,30 +11,44 @@
 
 namespace LIBC_NAMESPACE {
 
-#ifdef LIBC_TARGET_ARCH_IS_GPU
-struct ErrnoConsumer {
-  void operator=(int) {}
+struct Errno {
----------------
gchatelet wrote:

This is already defined in `libc/src/errno/libc_errno.h`. Shouldn't we `#include "libc/src/errno/libc_errno.h"` instead of redefining the structure here?

https://github.com/llvm/llvm-project/pull/79319


More information about the libc-commits mailing list