1. Mar 28, 2024
  2. Mar 24, 2024
  3. Mar 23, 2024
  4. Mar 20, 2024
  5. Mar 19, 2024
  6. Mar 17, 2024
  7. Mar 16, 2024
    • Ian Anderson's avatar
      [clang][modules] giving the __stddef_ headers their own modules can cause... · a649e0a6
      Ian Anderson authored
      [clang][modules] giving the __stddef_ headers their own modules can cause redeclaration errors with -fbuiltin-headers-in-system-modules (#84127)
      
      On Apple platforms, some of the stddef.h types are also declared in
      system headers. In particular NULL has a conflicting declaration in
      <sys/_types/_null.h>. When that's in a different module from
      <__stddef_null.h>, redeclaration errors can occur.
      
      Make the \_\_stddef_ headers be non-modular in
      -fbuiltin-headers-in-system-modules and restore them back to not
      respecting their header guards. Still define the header guards though.
      __stddef_max_align_t.h was in _Builtin_stddef_max_align_t prior to the
      addition of _Builtin_stddef, and it needs to stay in a module because
      struct's can't be type merged. __stddef_wint_t.h didn't used to have a
      module, but leave it in it current module since it doesn't really belong
      to stddef.h.
      
      (cherry picked from commit f50d3582)
      a649e0a6
  8. Mar 15, 2024