diff --git a/lib/libusbhid/usbhid.h b/lib/libusbhid/usbhid.h index ed652718863c..af3228f17c42 100644 --- a/lib/libusbhid/usbhid.h +++ b/lib/libusbhid/usbhid.h @@ -81,6 +81,8 @@ typedef struct hid_item { #define HID_PAGE(u) (((u) >> 16) & 0xffff) #define HID_USAGE(u) ((u) & 0xffff) +__BEGIN_DECLS + /* Obtaining a report descriptor, descr.c: */ report_desc_t hid_get_report_desc(int file); report_desc_t hid_use_report_desc(unsigned char *data, unsigned int size); @@ -103,3 +105,5 @@ int hid_parse_usage_page(const char *name); /* Extracting/insertion of data, data.c: */ int hid_get_data(const void *p, const hid_item_t *h); void hid_set_data(void *p, const hid_item_t *h, int data); + +__END_DECLS