diff --git a/usbdrv/usbdrv.h b/usbdrv/usbdrv.h index fb150ef..f115fda 100644 --- a/usbdrv/usbdrv.h +++ b/usbdrv/usbdrv.h @@ -10,6 +10,10 @@ #ifndef __usbdrv_h_included__ #define __usbdrv_h_included__ +#ifdef __cplusplus +extern "C" { +#endif + /* Hardware Prerequisites: ======================= @@ -767,4 +771,8 @@ typedef struct usbRequest{ /* ------------------------------------------------------------------------- */ +#ifdef __cplusplus +} +#endif + #endif /* __usbdrv_h_included__ */