commit | 7bc0ff3ce94572f3e52718938e4beb4c7a86bfff | [log] [tgz] |
---|---|---|
author | Chris Dickens <christopher.a.dickens@gmail.com> | Sat Jan 25 12:10:04 2020 -0800 |
committer | Chris Dickens <christopher.a.dickens@gmail.com> | Sat Jan 25 12:10:04 2020 -0800 |
tree | d94640a7edf402b2373b5cc4cfb84881e9c4bfb6 | |
parent | 221e8196221a6ede462914daf6c2652d57843df6 [diff] |
core: Convert internal macros to static inline functions Older versions of the Visual Studio compiler are picky about macros constructed with the 'do { ... } while (0)' construct. Convert these internal ones to static inline functions. The result is functionally equivalent but gets us type checking and a bit more readability. Also address some compiler warnings due to some header files that are being included in a different order than before. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD and Haiku userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
(Please use the mailing list rather than mailing developers directly)