[libc++] Remove workarounds for systems that used to require __need_XXX macros
Libc++ tried accomodating systems that need to be able to define various
__need_FOO macros before including C library headers, however it does not
appear to be needed anymore in most cases. Indeed, glibc used to use that
system to conditionally provide definitions, however almost all instances
of these macros have been removed from glibc years ago.
I think the next step would be to also fix Clang's own builtin headers
to stop needing these macros.
Differential Revision: https://reviews.llvm.org/D131425
NOKEYCHECK=True
GitOrigin-RevId: 119cef40d18c48240854edc553dca61c4e9fdf27
diff --git a/include/module.modulemap.in b/include/module.modulemap.in
index 5f07d9d..bc4526b 100644
--- a/include/module.modulemap.in
+++ b/include/module.modulemap.in
@@ -75,14 +75,12 @@
export Darwin.C.stdint
}
module stdio_h {
- // <stdio.h>'s __need_* macros require textual inclusion.
- textual header "stdio.h"
+ header "stdio.h"
export *
export Darwin.C.stdio
}
module stdlib_h {
- // <stdlib.h>'s __need_* macros require textual inclusion.
- textual header "stdlib.h"
+ header "stdlib.h"
export *
}
module string_h {
@@ -96,8 +94,7 @@
// <time.h> provided by C library.
module wchar_h {
@requires_LIBCXX_ENABLE_WIDE_CHARACTERS@
- // <wchar.h>'s __need_* macros require textual inclusion.
- textual header "wchar.h"
+ header "wchar.h"
export *
}
module wctype_h {