Module Name: src Committed By: dholland Date: Fri Jan 22 23:51:23 UTC 2016
Modified Files: src/lib/libusbhid: usbhid.h Log Message: Uses __BEGIN_DECLS so needs sys/cdefs.h; also needs stdint.h. And, while here, add missing include guard. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/lib/libusbhid/usbhid.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libusbhid/usbhid.h diff -u src/lib/libusbhid/usbhid.h:1.5 src/lib/libusbhid/usbhid.h:1.6 --- src/lib/libusbhid/usbhid.h:1.5 Wed Apr 11 20:56:20 2007 +++ src/lib/libusbhid/usbhid.h Fri Jan 22 23:51:23 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: usbhid.h,v 1.5 2007/04/11 20:56:20 plunky Exp $ */ +/* $NetBSD: usbhid.h,v 1.6 2016/01/22 23:51:23 dholland Exp $ */ /* * Copyright (c) 1999 Lennart Augustsson <augus...@netbsd.org> @@ -26,6 +26,12 @@ * SUCH DAMAGE. */ +#ifndef _USBHID_H_ +#define _USBHID_H_ + +#include <sys/cdefs.h> +#include <stdint.h> + typedef struct report_desc *report_desc_t; typedef struct hid_data *hid_data_t; @@ -102,3 +108,5 @@ int hid_get_data(const void *p, const hi void hid_set_data(void *p, const hid_item_t *h, int data); __END_DECLS + +#endif /* _USBHID_H_ */