summaryrefslogtreecommitdiff
path: root/common/usbx_device_classes/inc/ux_device_class_hid.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/usbx_device_classes/inc/ux_device_class_hid.h')
-rw-r--r--common/usbx_device_classes/inc/ux_device_class_hid.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/common/usbx_device_classes/inc/ux_device_class_hid.h b/common/usbx_device_classes/inc/ux_device_class_hid.h
index fc86bdd..48eac98 100644
--- a/common/usbx_device_classes/inc/ux_device_class_hid.h
+++ b/common/usbx_device_classes/inc/ux_device_class_hid.h
@@ -26,7 +26,7 @@
/* COMPONENT DEFINITION RELEASE */
/* */
/* ux_device_class_hid.h PORTABLE C */
-/* 6.1.3 */
+/* 6.1.8 */
/* AUTHOR */
/* */
/* Chaoqiong Xiao, Microsoft Corporation */
@@ -50,12 +50,26 @@
/* added Get/Set Protocol */
/* request support, */
/* resulting in version 6.1.3 */
+/* 08-02-2021 Chaoqiong Xiao Modified comment(s), */
+/* added extern "C" keyword */
+/* for compatibility with C++, */
+/* resulting in version 6.1.8 */
/* */
/**************************************************************************/
#ifndef UX_DEVICE_CLASS_HID_H
#define UX_DEVICE_CLASS_HID_H
+/* Determine if a C++ compiler is being used. If so, ensure that standard
+ C is used to process the API information. */
+
+#ifdef __cplusplus
+
+/* Yes, C++ compiler is present. Use standard C. */
+extern "C" {
+
+#endif
+
/* Define HID Class constants. */
#define UX_DEVICE_CLASS_HID_CLASS 0x03
@@ -193,4 +207,10 @@ UINT _ux_device_class_hid_report_get(UX_SLAVE_CLASS_HID *hid, ULONG descriptor_
#define ux_device_class_hid_protocol_get(hid) (hid -> ux_device_class_hid_protocol)
+/* Determine if a C++ compiler is being used. If so, complete the standard
+ C conditional started above. */
+#ifdef __cplusplus
+}
+#endif
+
#endif