I'm attempting to test libusb on PPC, and came across the following problems
in compiling the code (My branch of the Windows backend branch, with various updates
poll.h doesn't define nfds_t in 10.3:
I worked around this by doing a:
typedef unsigned int nfds_t;
in the config.h created for OS X.
IO_OBJECT_NULL isn't defined prior to 10.4:
So I also added:
# define IO_OBJECT_NULL ((io_object_t) 0)
to the config.h created for OS X.
Bugs in running on PPC:
I found the following endian related problems running the code:
About line 374 in get_configuration_index(),
- if (libusb_le16_to_cpu (desc->bConfigurationValue) == config_value)
+ if (desc->bConfigurationValue == config_value)
I presume this because bConfigurationValue is a byte, and therefore
doesn't need swapping.
Get latest updates about Open Source Projects, Conferences and News.