[libc-commits] [libc] 9c4e005 - [libc] customizable namespace 2/4 (#65471)
via libc-commits
libc-commits at lists.llvm.org
Thu Sep 7 08:19:51 PDT 2023
Author: Guillaume Chatelet
Date: 2023-09-07T17:19:47+02:00
New Revision: 9c4e0056785b34f00c02a08b9fceded9512c1f65
URL: https://github.com/llvm/llvm-project/commit/9c4e0056785b34f00c02a08b9fceded9512c1f65
DIFF: https://github.com/llvm/llvm-project/commit/9c4e0056785b34f00c02a08b9fceded9512c1f65.diff
LOG: [libc] customizable namespace 2/4 (#65471)
This implements the second step of
https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
Namely "Add a guard in `src/__support/common.h`"
Added:
Modified:
libc/src/__support/common.h
Removed:
################################################################################
diff --git a/libc/src/__support/common.h b/libc/src/__support/common.h
index 1cdd6fe1a515e68..a6aaa4eb2c2287a 100644
--- a/libc/src/__support/common.h
+++ b/libc/src/__support/common.h
@@ -9,6 +9,10 @@
#ifndef LLVM_LIBC_SUPPORT_COMMON_H
#define LLVM_LIBC_SUPPORT_COMMON_H
+#ifndef LIBC_NAMESPACE
+#error "LIBC_NAMESPACE macro is not defined."
+#endif
+
#include "src/__support/macros/attributes.h"
#include "src/__support/macros/properties/architectures.h"
More information about the libc-commits
mailing list