Skip to content

Commit 5a886b7

Browse files
committed
Remaining IWYU cleanups
1 parent 0c8283f commit 5a886b7

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

hidtest/test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <wchar.h>
2020
#include <string.h>
2121
#include <stdlib.h>
22-
2322
#include <hidapi.h>
2423

2524
// Headers needed for sleeping.

libusb/hid.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,14 @@
2626
#include <stdio.h>
2727
#include <string.h>
2828
#include <stdlib.h>
29+
#include <stdint.h>
2930
#include <ctype.h>
3031
#include <locale.h>
3132
#include <errno.h>
3233

3334
/* Unix */
3435
#include <unistd.h>
3536
#include <sys/types.h>
36-
#include <sys/stat.h>
37-
#include <sys/ioctl.h>
38-
#include <sys/utsname.h>
3937
#include <fcntl.h>
4038
#include <wchar.h>
4139

linux/hid.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,26 @@
2626
#include <stdlib.h>
2727
#include <locale.h>
2828
#include <errno.h>
29-
3029
/* Unix */
3130
#include <unistd.h>
32-
#include <sys/types.h>
3331
#include <sys/stat.h>
3432
#include <sys/ioctl.h>
35-
#include <sys/utsname.h>
3633
#include <fcntl.h>
3734
#include <poll.h>
35+
#include <linux/types.h>
36+
#include <linux/hid.h>
37+
#include <stdarg.h>
38+
#include <wchar.h>
3839

3940
/* Linux */
4041
#include <linux/hidraw.h>
41-
#include <linux/version.h>
4242
#include <linux/input.h>
4343
#include <libudev.h>
4444

4545
#include "hidapi.h"
4646

47+
struct udev_device;
48+
4749
#ifdef HIDAPI_ALLOW_BUILD_WORKAROUND_KERNEL_2_6_39
4850
/* This definitions first appeared in Linux Kernel 2.6.39 in linux/hidraw.h.
4951
hidapi doesn't support kernels older than that,

mac/hid.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@
2929
#include <CoreFoundation/CoreFoundation.h>
3030
#include <mach/mach_error.h>
3131
#include <stdbool.h>
32+
#include <stdint.h>
33+
#include <stdlib.h>
3234
#include <wchar.h>
3335
#include <locale.h>
3436
#include <pthread.h>
3537
#include <sys/time.h>
3638
#include <unistd.h>
3739
#include <dlfcn.h>
40+
#include <errno.h>
3841

3942
#include "hidapi_darwin.h"
4043

0 commit comments

Comments
 (0)