diff --git a/c/include/libfreenect.h b/c/include/libfreenect.h index bea1d33b..97634e6d 100644 --- a/c/include/libfreenect.h +++ b/c/include/libfreenect.h @@ -14,6 +14,12 @@ This code is licensed to you under the terms of the GNU GPL, version 2 or versio typedef void (*depthcb)(uint16_t *buf, int width, int height); typedef void (*rgbcb)(uint8_t *buf, int width, int height); -void cams_init(libusb_device_handle *d, depthcb depth_cb, rgbcb rgb_cb); +#ifdef __cplusplus +extern "C" { +#endif + void cams_init(libusb_device_handle *d, depthcb depth_cb, rgbcb rgb_cb); +#ifdef __cplusplus +} +#endif -#endif \ No newline at end of file +#endif