From 289b0afc596b7f7e4fd04f0f178c3acb4734cdaa Mon Sep 17 00:00:00 2001 From: Vladimir Dronnikov Date: Sun, 17 Jun 2018 13:14:17 +0300 Subject: [PATCH] allow for linking into c++ projects --- usbdrv/usbdrv.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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__ */