Browse Source

Bugfix: Define lowl_usb even if libusb support is omitted, since VCOM and HID drivers check against it for warnings

Luke Dashjr 12 years ago
parent
commit
b08fc020c2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lowlevel.h

+ 3 - 0
lowlevel.h

@@ -49,6 +49,9 @@ extern struct lowlevel_driver lowl_mcp2210;
 #endif
 #ifdef HAVE_LIBUSB
 extern struct lowlevel_driver lowl_usb;
+#else
+// Dummy definition for the various "don't warn if just a lower-level interface" checks
+static struct lowlevel_driver lowl_usb;
 #endif
 #ifdef HAVE_FPGAUTILS
 extern struct lowlevel_driver lowl_vcom;