From: Ozkan Sezer Date: Sun, 4 Apr 2021 08:11:10 +0000 (+0300) Subject: make libusb.h usable with Watcom X-Git-Tag: upstream/1.0.25~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2b81aeff1178a1c186986b1c608247b44b657f0;p=platform%2Fupstream%2Flibusb.git make libusb.h usable with Watcom Closes #904 Signed-off-by: Nathan Hjelm --- diff --git a/libusb/libusb.h b/libusb/libusb.h index b0b5106..d2dfa20 100644 --- a/libusb/libusb.h +++ b/libusb/libusb.h @@ -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 diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 957a371..1524109 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11615 +#define LIBUSB_NANO 11617