From 3f8cf55f143828a4ada0b2446ea6fcdcf595ed60 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 26 Mar 2013 06:40:17 -0400 Subject: Fixed compilation with autotools. --- libusbhp/libusbhp.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libusbhp/libusbhp.h') diff --git a/libusbhp/libusbhp.h b/libusbhp/libusbhp.h index ccf7125..7622576 100644 --- a/libusbhp/libusbhp.h +++ b/libusbhp/libusbhp.h @@ -41,6 +41,11 @@ #include #endif +#ifdef __cplusplus +extern "C" { +#endif + + struct libusbhp_t; struct libusbhp_device_t { @@ -66,6 +71,9 @@ EXPORT libusbhp_hotplug_cb_fn disconnected_cb, void *user_data); +#ifdef __cplusplus +} +#endif /*** // Libusbx implementation: -- cgit v1.2.3