Windows compatibility fixes.

Supplied and tested by Patrick Dussud <phdussud@hotmail.com>.
This commit is contained in:
Daniel Beer 2016-12-21 09:57:23 +13:00
parent 9114125216
commit 1f77d74803
7 changed files with 29 additions and 1 deletions

View File

@ -16,7 +16,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef __Windows__
#include <usb.h> #include <usb.h>
#else
#include <lusb0_usb.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <limits.h> #include <limits.h>

View File

@ -19,7 +19,12 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifndef __Windows__
#include <usb.h> #include <usb.h>
#else
#include <lusb0_usb.h>
#endif
#include "cdc_acm.h" #include "cdc_acm.h"
#include "util.h" #include "util.h"

View File

@ -20,7 +20,13 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifndef __Windows__
#include <usb.h> #include <usb.h>
#else
#include <lusb0_usb.h>
#endif
#include <time.h> #include <time.h>
#include "cp210x.h" #include "cp210x.h"

View File

@ -19,7 +19,11 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifndef __Windows__
#include <usb.h> #include <usb.h>
#else
#include <lusb0_usb.h>
#endif
#include "rf2500.h" #include "rf2500.h"
#include "util.h" #include "util.h"

View File

@ -20,7 +20,12 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#ifndef __Windows__
#include <usb.h> #include <usb.h>
#else
#include <lusb0_usb.h>
#endif
#include <time.h> #include <time.h>
#include "ti3410.h" #include "ti3410.h"

View File

@ -20,9 +20,9 @@
#define SPORT_H_ #define SPORT_H_
#include <stdint.h> #include <stdint.h>
#ifndef __Windows__ #ifndef __Windows__
#include <termios.h> #include <termios.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>

View File

@ -19,7 +19,11 @@
#ifndef USBUTIL_H_ #ifndef USBUTIL_H_
#define USBUTIL_H_ #define USBUTIL_H_
#ifndef __Windows__
#include <usb.h> #include <usb.h>
#else
#include <lusb0_usb.h>
#endif
/* List all available USB devices. */ /* List all available USB devices. */
void usbutil_list(void); void usbutil_list(void);