Hello,
I've finally managed to get some time to add libusb 1.0 support to
Barry. However I'm a little confused by some of the existing code in
particular configure.ac has the following:
# If we are using configure, then we always are using LIBUSB.
# This only gets set to 0 if compiling for some other USB related driver.
USE_LIBUSB=1
AC_SUBST([USE_LIBUSB])
And src/usbwrap.h has the following:
#ifUSE_LIBUSB
#include <usb.h>
#if defined( WIN32 )
// On Windows systems, usb.h includes <windows.h> which defines
min/max,
// which causes trouble for other headers
#undef min
#undef max
#endif
#else // USE_LIBUSB
#if defined( WIN32 )
// If not using libusb, we need to include windows.h ourselves, since
// other code is depending on it.
#include <windows.h>
#undef min
#undef max
#endif
#endif // USE_LIBUSB
What other USB libraries does Barry currently supports other than libusb
0.1? Is one of them native Windows APIs?
Or is it ok if I tidy up this code and split it into suitable interfaces
and just supply libusb 0.1 and libusb 1.0 implementations of them?
Regards,
Toby
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel