This cherry-picks https://github.com/apple/llvm-project/pull/6431
since without it, macOS 14 SDK headers don't compile when targeting
catalyst.
Fixes #64438.
The github issue has all the details: https://github.com/llvm/llvm-project/issues/64438
The patch maybe looks a bit eh, but doing something different downstream also seems a bit eh. The system headers are precision matched to this patch.
(I'll commit this with @zoecarver as author to not steal attribution 🙂)