diff options
Diffstat (limited to 'commandline/library/opendevice.h')
-rw-r--r-- | commandline/library/opendevice.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/commandline/library/opendevice.h b/commandline/library/opendevice.h index a23ed41..f687ccd 100644 --- a/commandline/library/opendevice.h +++ b/commandline/library/opendevice.h @@ -23,11 +23,12 @@ files according to the GNU General Public License (GPL) version 2 or 3. #ifndef __OPENDEVICE_H_INCLUDED__ #define __OPENDEVICE_H_INCLUDED__ -#if defined(LINUX) - #include <usb.h> // this is libusb, see http://libusb.sourceforge.net/ +#if defined WIN + #include <lusb0_usb.h> // this is libusb, see http://libusb.sourceforge.net/ #else - #include <lusb0_usb.h> // this is libusb, see http://libusb.sourceforge.net/ + #include <usb.h> // this is libusb, see http://libusb.sourceforge.net/ #endif + #include <stdio.h> int usbGetStringAscii(usb_dev_handle *dev, int index, char *buf, int buflen); |