[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`"
This commit is contained in:
Guillaume Chatelet 2023-09-07 15:19:47 +00:00 committed by GitHub
parent 84e2fd7ee4
commit 9c4e005678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"