summaryrefslogtreecommitdiff
path: root/libusb/os/linux_usbfs.h
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2020-01-26 14:31:35 -0800
committerChris Dickens <christopher.a.dickens@gmail.com>2020-01-26 14:31:35 -0800
commit80d2238cb80469aee03d0367080350496d8548eb (patch)
treeefd84ff3c454b0e437b773bc3248a248d9e5fb2c /libusb/os/linux_usbfs.h
parenta96937af9935c569b679d8ada2f59e90754b700a (diff)
downloadlibusb-80d2238cb80469aee03d0367080350496d8548eb.tar.gz
Windows: Fix GCC printf format warnings due to DWORD/ULONG types
The Visual Studio compiler considers a long to always be 32-bits, so the official Windows API headers define the DWORD and ULONG types as unsigned long proper. GCC (and possibly other compilers) vary the width of a long to match the build target, so this complicates printf format strings for these two types because the underlying type is inconsistent. Address this mess by introducing a macro that casts as necessary for the compiler. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/os/linux_usbfs.h')
0 files changed, 0 insertions, 0 deletions