Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-38709: [C++] Protect against PREALLOCATE preprocessor defined on m…
…acOS (#38760) ### Rationale for this change The macOS header `sys/vnode.h` defines `PREALLOCATE` as a preprocessor macro, which causes a conflict in `arrow/compute/kernel.h` where the same name is defined as an identifier. Other BSDs does not seem to define this macro. ### What changes are included in this PR? `#undef PREALLOCATE` on macOS and if defined. ### Are these changes tested? Somewhat, in a different context. ### Are there any user-facing changes? If some code specific to macOS actually uses the `PREALLOCATE` macro, then that code may have problems. However, it is unlikely that any user code would use this macro as it seems to be intended for internal use in the BSD kernel of macOS. * Closes: #38709 Lead-authored-by: Christian Holm Christensen <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
- Loading branch information