includes simplification and cleanup (core)

This commit is contained in:
Pete Batard
2010-02-24 22:05:40 +00:00
parent 0a40fde82d
commit dbd439fa2c
8 changed files with 7 additions and 18 deletions
-1
View File
@@ -18,7 +18,6 @@
*/
#include <stdio.h>
#include <sys/types.h>
#include <libusb/libusb.h>
-2
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
-1
View File
@@ -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
View File
@@ -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