aboutsummaryrefslogtreecommitdiff
path: root/upgrade/stm32mem.h
diff options
context:
space:
mode:
authorGareth McMullin2013-08-19 12:26:05 +1200
committerGareth McMullin2013-08-19 12:26:05 +1200
commitfce43bcd98ee419720795f4c384f58e65896e0c8 (patch)
tree9e658330ace3b072f56b9377e6da4ca1b0af2680 /upgrade/stm32mem.h
parenta30ef31018c6e4ea4cba69755f2fcdd0dbc17baa (diff)
Fixed upgrade tool to build against current libusb-win32.
Diffstat (limited to 'upgrade/stm32mem.h')
-rw-r--r--upgrade/stm32mem.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/upgrade/stm32mem.h b/upgrade/stm32mem.h
index 34cdfb1..fd99c65 100644
--- a/upgrade/stm32mem.h
+++ b/upgrade/stm32mem.h
@@ -20,7 +20,11 @@
#ifndef __STM32MEM_H
#define __STM32MEM_H
-#include <usb.h>
+#ifdef WIN32
+# include <lusb0_usb.h>
+#else
+# include <usb.h>
+#endif
int stm32_mem_erase(usb_dev_handle *dev, uint16_t iface, uint32_t addr);
int stm32_mem_write(usb_dev_handle *dev, uint16_t iface, void *data, int size);