[all-commits] [llvm/llvm-project] 119cef: [libc++] Remove workarounds for systems that used ...

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Nov 21 05:22:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 119cef40d18c48240854edc553dca61c4e9fdf27
      https://github.com/llvm/llvm-project/commit/119cef40d18c48240854edc553dca61c4e9fdf27
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2022-11-21 (Mon, 21 Nov 2022)

  Changed paths:
    M libcxx/include/ext/__hash
    M libcxx/include/module.modulemap.in
    M libcxx/include/stdbool.h
    M libcxx/include/stddef.h
    M libcxx/include/stdio.h
    M libcxx/include/stdlib.h
    M libcxx/include/wchar.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list