Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c4e005

Browse files
authored
[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`"
1 parent 84e2fd7 commit 9c4e005

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libc/src/__support/common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#ifndef LLVM_LIBC_SUPPORT_COMMON_H
1010
#define LLVM_LIBC_SUPPORT_COMMON_H
1111

12+
#ifndef LIBC_NAMESPACE
13+
#error "LIBC_NAMESPACE macro is not defined."
14+
#endif
15+
1216
#include "src/__support/macros/attributes.h"
1317
#include "src/__support/macros/properties/architectures.h"
1418

0 commit comments

Comments
 (0)