Fix mingw32 compilation of usb_port.c

pull/155/head
Michael Black 2019-12-24 15:35:37 -06:00
rodzic 2fca5f49b8
commit 72e934b67e
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -35,10 +35,6 @@
# include "config.h"
#endif
/*
* Compile only if libusb is available
*/
#if defined(HAVE_LIBUSB) && (defined(HAVE_LIBUSB_H) || defined(HAVE_LIBUSB_1_0_LIBUSB_H))
#include <stdlib.h>
@ -58,6 +54,10 @@
#include "usb_port.h"
/*
* Compile only if libusb is available
*/
#if defined(HAVE_LIBUSB) && (defined(HAVE_LIBUSB_H) || defined(HAVE_LIBUSB_1_0_LIBUSB_H))
/**
* \brief Find and open USB device