make libusb.h usable with Watcom
authorOzkan Sezer <sezeroz@gmail.com>
Sun, 4 Apr 2021 08:11:10 +0000 (11:11 +0300)
committerNathan Hjelm <hjelmn@google.com>
Sun, 16 May 2021 21:21:46 +0000 (15:21 -0600)
Closes #904

Signed-off-by: Nathan Hjelm <hjelmn@google.com>
libusb/libusb.h
libusb/version_nano.h

index b0b5106..d2dfa20 100644 (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
 
index 957a371..1524109 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11615
+#define LIBUSB_NANO 11617