Some relatively minor fixes to get this building for windows using mingw-w64
libusb.h pulls in windows.h on windows which has it's own typedefs for BYTE, UCHAR etc. DWORD is typedef'd as unsigned long though which causes build errors despite LLP64 meaning that long & int are the same size. Replacing the problem variables with UINT works fine.
defining _POSIX_THREAD_SAFE_FUNCTIONS enables localtime_r in the mingw-w64 headers.
Some relatively minor fixes to get this building for windows using mingw-w64
libusb.h pulls in windows.h on windows which has it's own typedefs for BYTE, UCHAR etc. DWORD is typedef'd as unsigned long though which causes build errors despite LLP64 meaning that long & int are the same size. Replacing the problem variables with UINT works fine.
defining _POSIX_THREAD_SAFE_FUNCTIONS enables localtime_r in the mingw-w64 headers.