[libc-commits] [libc] [libc] Fix missing default value for errno config (PR #100175)
via libc-commits
libc-commits at lists.llvm.org
Tue Jul 23 12:27:14 PDT 2024
================
@@ -23,7 +25,8 @@
// fullbuild mode, effectively the same as `LIBC_ERRNO_MODE_EXTERNAL`.
#define LIBC_ERRNO_MODE_SYSTEM 5
-#ifndef LIBC_ERRNO_MODE
+#if !defined(LIBC_ERRNO_MODE) || LIBC_ERRNO_MODE == LIBC_ERRNO_MODE_DEFAULT
----------------
lntue wrote:
Can you add `LIBC_ERRNO_MODE_DEFAULT` to the `#error` message below?
https://github.com/llvm/llvm-project/pull/100175
More information about the libc-commits
mailing list