[cdi-devel] [PATCH 01/10] usb: extern "C" {}
Max Reitz ·
! It was missing. Amend this lest it is any longer. Signed-off-by: Max Reitz <max at tyndur.org> --- include/cdi/usb.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/cdi/usb.h b/include/cdi/usb.h index d30e7b0..c7fa751 100644 --- a/include/cdi/usb.h +++ b/include/cdi/usb.h @@ -175,6 +175,10 @@ struct cdi_usb_bus_device_pattern { }; +#ifdef __cplusplus +extern "C" { +#endif + /** * Registers a USB bus driver. Should be called by the CDI library, ideally, * after the USB bus driver's init() function has run. @@ -208,4 +212,8 @@ cdi_usb_transmission_result_t cdi_usb_bulk_transfer(struct cdi_usb_device* dev, int ep, void* data, size_t size); +#ifdef __cplusplus +}; // extern "C" +#endif + #endif -- 2.6.4