lidavidm commented on code in PR #34972: URL: https://github.com/apache/arrow/pull/34972#discussion_r1161362455
########## cpp/src/arrow/c/abi.h: ########## @@ -65,6 +65,69 @@ struct ArrowArray { #endif // ARROW_C_DATA_INTERFACE +#ifndef ARROW_C_DEVICE_DATA_INTERFACE +#define ARROW_C_DEVICE_DATA_INTERFACE + +// ArrowDeviceType is compatible with dlpack DLDeviceType for portability +// it uses the same values for each enum as the equivalent kDL<type> from dlpack.h +#ifdef __cplusplus +typedef enum : int32_t { +#else +typedef enum { +#endif Review Comment: I wasn't thinking ADBC - the C Data Interface already uses macros. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org