git: 7f0392e1c8a2 - stable/14 - libusbhid: add missing include guards
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 09 Jun 2024 16:32:37 UTC
The branch stable/14 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=7f0392e1c8a2832f045868b62f8840e73a2f21fa
commit 7f0392e1c8a2832f045868b62f8840e73a2f21fa
Author: Andreas Kempe <kempe@lysator.liu.se>
AuthorDate: 2022-07-10 20:51:48 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-06-09 16:32:16 +0000
libusbhid: add missing include guards
PR: 265136
(cherry picked from commit 230efeda080f09bc282f50a7a4cfc337fd7c6d0d)
---
lib/libusbhid/usbhid.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/libusbhid/usbhid.h b/lib/libusbhid/usbhid.h
index 15d4f1613746..637fb3d846f7 100644
--- a/lib/libusbhid/usbhid.h
+++ b/lib/libusbhid/usbhid.h
@@ -29,6 +29,9 @@
*
*/
+#ifndef _USBHID_H_
+#define _USBHID_H_
+
#include <stdint.h>
typedef struct report_desc *report_desc_t;
@@ -111,3 +114,5 @@ int hid_set_report(int fd, enum hid_kind k,
unsigned char *data, unsigned int size);
__END_DECLS
+
+#endif /* !_USBHID_H_ */