summaryrefslogtreecommitdiffstats
path: root/commandline/library/opendevice.h
diff options
context:
space:
mode:
authorJenna Fox <a@creativepony.com>2012-09-30 11:14:00 +1000
committerJenna Fox <a@creativepony.com>2012-09-30 11:14:00 +1000
commitb5632254e453044e12ab3770f3f53dae2069437a (patch)
tree92ae68c1536683c43ceb75c31231466f81e7470d /commandline/library/opendevice.h
parent93ee4971efb6d74d1c19791567c06239e9630e1d (diff)
downloadmicronucleus-b5632254e453044e12ab3770f3f53dae2069437a.tar.gz
micronucleus-b5632254e453044e12ab3770f3f53dae2069437a.tar.bz2
micronucleus-b5632254e453044e12ab3770f3f53dae2069437a.zip
Added Mac OS X compatibility to Ihsan's cli upload program
Diffstat (limited to 'commandline/library/opendevice.h')
-rw-r--r--commandline/library/opendevice.h7
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);