make libusb.h usable with Watcom

Closes #904

Signed-off-by: Nathan Hjelm <hjelmn@google.com>
This commit is contained in:
Ozkan Sezer 2021-04-04 11:11:10 +03:00 committed by Nathan Hjelm
parent 35e8ee98a3
commit a2b81aeff1
2 changed files with 3 additions and 3 deletions

View file

@ -904,7 +904,7 @@ struct libusb_container_id_descriptor {
/** \ingroup libusb_asyncio
* Setup packet for control transfers. */
#if defined(_MSC_VER)
#if defined(_MSC_VER) || defined(__WATCOMC__)
#pragma pack(push, 1)
#endif
struct libusb_control_setup {
@ -932,7 +932,7 @@ struct libusb_control_setup {
/** Number of bytes to transfer */
uint16_t wLength;
} LIBUSB_PACKED;
#if defined(_MSC_VER)
#if defined(_MSC_VER) || defined(__WATCOMC__)
#pragma pack(pop)
#endif

View file

@ -1 +1 @@
#define LIBUSB_NANO 11615
#define LIBUSB_NANO 11617