We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LIBC_ERRNO_MODE
1 parent 97e3121 commit 359304cCopy full SHA for 359304c
libc/shared/libc_common.h
@@ -10,8 +10,14 @@
10
#define LLVM_LIBC_SHARED_LIBC_COMMON_H
11
12
// Use system errno.
13
-#undef LIBC_ERRNO_MODE
+#ifdef LIBC_ERRNO_MODE
14
+#if LIBC_ERRNO_MODE != LIBC_ERRNO_MODE_SYSTEM_INLINE
15
+#error \
16
+ "LIBC_ERRNO_MODE was set to something different from LIBC_ERRNO_MODE_SYSTEM_INLINE."
17
+#endif // LIBC_ERRNO_MODE != LIBC_ERRNO_MODE_SYSTEM_INLINE
18
+#else
19
#define LIBC_ERRNO_MODE LIBC_ERRNO_MODE_SYSTEM_INLINE
20
+#endif // LIBC_ERRNO_MODE
21
22
#ifndef LIBC_NAMESPACE
23
#define LIBC_NAMESPACE __llvm_libc
0 commit comments