From 9b153bbda511fcb4373844da9899d5624ac51b59 Mon Sep 17 00:00:00 2001 From: mbanth Date: Wed, 7 Jul 2021 17:25:25 +0100 Subject: [PATCH] Add C and XC specific declarations of hidGetReportItem() --- lib_xua/src/hid/xua_hid_report_descriptor.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib_xua/src/hid/xua_hid_report_descriptor.h b/lib_xua/src/hid/xua_hid_report_descriptor.h index 34d391a3..dc8878ae 100644 --- a/lib_xua/src/hid/xua_hid_report_descriptor.h +++ b/lib_xua/src/hid/xua_hid_report_descriptor.h @@ -111,7 +111,11 @@ size_t hidGetReportDescriptorLength( void ); * @retval \c HID_STATUS_BAD_LOCATION The \a bit or \a byte arguments specify a location outside * of the HID Report */ +#if defined(__XC__) +unsigned hidGetReportItem( const unsigned byte, const unsigned bit, unsigned char* unsafe const page, unsigned char* unsafe const header, unsigned char* unsafe const data); +#else unsigned hidGetReportItem( const unsigned byte, const unsigned bit, unsigned char* const page, unsigned char* const header, unsigned char data[]); +#endif /** * @brief Get the length of the HID Report