================ @@ -49,7 +48,25 @@ #define __need_rsize_t #endif #define __need_wchar_t +#if !defined(__STDDEF_H) && !__building_module(_Builtin_stddef) ---------------- ian-twilightcoder wrote:
We do still need everything when we're building with modules for the reasons outlined in the comment, but I think you're right that `__building_module(_Builtin_stddef)` doesn't do anything and that needs to be `__has_feature(modules)` https://github.com/llvm/llvm-project/pull/99727 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits