diff options
Diffstat (limited to 'common/usbx_device_classes/inc/ux_device_class_pima.h')
| -rw-r--r-- | common/usbx_device_classes/inc/ux_device_class_pima.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/common/usbx_device_classes/inc/ux_device_class_pima.h b/common/usbx_device_classes/inc/ux_device_class_pima.h index 36558ba..93dbfab 100644 --- a/common/usbx_device_classes/inc/ux_device_class_pima.h +++ b/common/usbx_device_classes/inc/ux_device_class_pima.h @@ -26,7 +26,7 @@ /* COMPONENT DEFINITION RELEASE */ /* */ /* ux_device_class_pima.h PORTABLE C */ -/* 6.1 */ +/* 6.1.8 */ /* AUTHOR */ /* */ /* Chaoqiong Xiao, Microsoft Corporation */ @@ -46,12 +46,26 @@ /* TX symbols instead of using */ /* them directly, */ /* resulting in version 6.1 */ +/* 08-02-2021 Wen Wang Modified comment(s), */ +/* added extern "C" keyword */ +/* for compatibility with C++, */ +/* resulting in version 6.1.8 */ /* */ /**************************************************************************/ #ifndef UX_DEVICE_CLASS_PIMA_H #define UX_DEVICE_CLASS_PIMA_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 PIMA Class constants. */ #define UX_DEVICE_CLASS_PIMA_CLASS_TRANSFER_TIMEOUT 300000 @@ -998,4 +1012,10 @@ extern USHORT _ux_device_class_pima_device_prop_supported[]; +/* Determine if a C++ compiler is being used. If so, complete the standard + C conditional started above. */ +#ifdef __cplusplus +} +#endif + #endif |
