Misc: Trim and consolidate header file usage
authorChris Dickens <christopher.a.dickens@gmail.com>
Wed, 22 Jan 2020 23:53:17 +0000 (15:53 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Fri, 24 Jan 2020 19:21:27 +0000 (11:21 -0800)
commitaaff15d48d1b8555aabf012b06bf39bf8aa4768a
tree1eebfa64f672df87806852b00afb2b924b4b5eae
parent325e5ac8ddf2cb100a47e39185bc9f134d3b2f98
Misc: Trim and consolidate header file usage

Refactor libusbi.h to include the set of common header files needed by
every main source file in the library and change these source files to
include libusbi.h first, followed by any non-common headers. Including
libusbi.h first ensures that the config definitions are pulled in and
will eliminate redundant includes in the individual sources files.

Also clean up some whitespace errors and remove unnecessary definitions
in the manually generated config.h files.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
23 files changed:
Xcode/config.h
android/config.h
libusb/core.c
libusb/descriptor.c
libusb/hotplug.c
libusb/hotplug.h
libusb/io.c
libusb/libusb.h
libusb/libusbi.h
libusb/os/darwin_usb.c
libusb/os/linux_netlink.c
libusb/os/linux_udev.c
libusb/os/poll_posix.c
libusb/os/poll_posix.h
libusb/os/poll_windows.h
libusb/os/threads_posix.c
libusb/os/threads_posix.h
libusb/os/threads_windows.c
libusb/os/threads_windows.h
libusb/strerror.c
libusb/sync.c
libusb/version_nano.h
msvc/config.h