diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-01-25 12:10:04 -0800 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-01-25 12:10:04 -0800 |
commit | 7bc0ff3ce94572f3e52718938e4beb4c7a86bfff (patch) | |
tree | d94640a7edf402b2373b5cc4cfb84881e9c4bfb6 /libusb/version_nano.h | |
parent | 221e8196221a6ede462914daf6c2652d57843df6 (diff) | |
download | libusb-7bc0ff3ce94572f3e52718938e4beb4c7a86bfff.tar.gz |
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>
Diffstat (limited to 'libusb/version_nano.h')
-rw-r--r-- | libusb/version_nano.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/version_nano.h b/libusb/version_nano.h index bda5199..e36b015 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11446 +#define LIBUSB_NANO 11447 |