Re: [PATCH v3] usbutils: convert to libusb-1.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 18, 2010 at 04:08:26PM -0500, Mike Frysinger wrote:
> -#if (__BYTE_ORDER == __LITTLE_ENDIAN)
> -  #define le16_to_cpu(x) (x)
> -#elif (__BYTE_ORDER == __BIG_ENDIAN)
> -  #define le16_to_cpu(x) bswap_16(x)
> -#else
> -  #error missing BYTE_ORDER
> -#endif
> +#define le16_to_cpu(x) libusb_cpu_to_le16(libusb_cpu_to_le16(x))

This line causes warnings when building.  And are you sure it's right?
Is that how libusb wants to be used?  Why not just use the
libusb_le16_to_cpu() macro instead?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux