From: Antonio Ospite Date: Fri, 13 Jan 2012 12:37:32 +0000 (+0100) Subject: Make including am7xxx.h in C++ code safe X-Git-Tag: v0.1.0~32 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/5c561b0a7b697114765dbb54442a99b4195439de?ds=inline;hp=3339bee3f62dbfa3586cc4db5201f7fc704ab037 Make including am7xxx.h in C++ code safe --- diff --git a/src/am7xxx.h b/src/am7xxx.h index d8d69d7..e67ec9f 100644 --- a/src/am7xxx.h +++ b/src/am7xxx.h @@ -22,6 +22,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + typedef libusb_device_handle *am7xxx_device; typedef enum { @@ -87,4 +91,8 @@ int am7xxx_send_image(am7xxx_device dev, uint8_t *image, unsigned int size); +#ifdef __cplusplus +} +#endif + #endif /* __AM7XXX_H */