kou commented on code in PR #38760:
URL: https://github.com/apache/arrow/pull/38760#discussion_r1397897955


##########
cpp/src/arrow/compute/kernel.h:
##########
@@ -38,6 +38,12 @@
 #include "arrow/util/macros.h"
 #include "arrow/util/visibility.h"
 
+// macOS defines PREALLOCATE as a preprocessor macro in the header sys/vnode.h.
+// No other BSD seems to do so. The name is used as an identifier in 
MemAllocation enum.
+#if defined(__APPLE__) && defined(PREALLOCATE)
+# undef PREALLOCATE 
+#endif  

Review Comment:
   ```suggestion
   #undef PREALLOCATE
   #endif
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to