mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-21 16:45:23 -04:00
includes simplification and cleanup (core)
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <libusb/libusb.h>
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -33,7 +32,6 @@
|
||||
#include <libusb/libusb.h>
|
||||
|
||||
#ifdef OS_WINDOWS
|
||||
#include <windows.h>
|
||||
#define msleep(msecs) Sleep(msecs)
|
||||
#else
|
||||
#include <unistd.h>
|
||||
|
||||
+1
-3
@@ -24,13 +24,11 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#ifndef OS_WINDOWS
|
||||
#include "os/unistd_posix.h"
|
||||
#endif
|
||||
|
||||
#include "libusb.h"
|
||||
#include "libusbi.h"
|
||||
#include <libusbi.h>
|
||||
|
||||
#if defined(OS_LINUX)
|
||||
const struct usbi_os_backend * const usbi_backend = &linux_usbfs_backend;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "libusbi.h"
|
||||
#include <libusbi.h>
|
||||
|
||||
#define DESC_HEADER_LENGTH 2
|
||||
#define DEVICE_DESC_LENGTH 18
|
||||
|
||||
+2
-6
@@ -21,13 +21,9 @@
|
||||
#include <config.h>
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#if !defined(_MSC_VER)
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
|
||||
#ifndef OS_WINDOWS
|
||||
#include "os/unistd_posix.h"
|
||||
#endif
|
||||
@@ -36,7 +32,7 @@
|
||||
#include <sys/timerfd.h>
|
||||
#endif
|
||||
|
||||
#include "libusbi.h"
|
||||
#include <libusbi.h>
|
||||
|
||||
/**
|
||||
* \page io Synchronous and asynchronous device I/O
|
||||
|
||||
+2
-2
@@ -22,14 +22,14 @@
|
||||
#define __LIBUSB_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <limits.h>
|
||||
#include <time.h>
|
||||
#ifdef _MSC_VER
|
||||
#define inline __inline
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
#include <limits.h>
|
||||
|
||||
/* 'interface' might be defined as a macro on Windows, so we need to
|
||||
* undefine it so as not to break the current libusb API, because
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <stddef.h>
|
||||
#include <time.h>
|
||||
#if !defined(OS_WINDOWS) || defined(__CYGWIN__)
|
||||
#include <poll.h>
|
||||
#endif
|
||||
|
||||
+1
-2
@@ -19,11 +19,10 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <errno.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "libusbi.h"
|
||||
#include <libusbi.h>
|
||||
|
||||
/**
|
||||
* @defgroup syncio Synchronous device I/O
|
||||
|
||||
Reference in New Issue
Block a user