Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libusbhid Uses __BEGIN_DECLS so needs sys/cdefs.h; also ...



details:   https://anonhg.NetBSD.org/src/rev/fd6edb56e650
branches:  trunk
changeset: 343116:fd6edb56e650
user:      dholland <dholland%NetBSD.org@localhost>
date:      Fri Jan 22 23:51:23 2016 +0000

description:
Uses __BEGIN_DECLS so needs sys/cdefs.h; also needs stdint.h.
And, while here, add missing include guard.

diffstat:

 lib/libusbhid/usbhid.h |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r d226d7c77278 -r fd6edb56e650 lib/libusbhid/usbhid.h
--- a/lib/libusbhid/usbhid.h    Fri Jan 22 23:47:04 2016 +0000
+++ b/lib/libusbhid/usbhid.h    Fri Jan 22 23:51:23 2016 +0000
@@ -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 <augustss%NetBSD.org@localhost>
@@ -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 @@
 void hid_set_data(void *p, const hid_item_t *h, int data);
 
 __END_DECLS
+
+#endif /* _USBHID_H_ */



Home | Main Index | Thread Index | Old Index