diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-01-22 15:53:17 -0800 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-01-24 11:21:27 -0800 |
commit | aaff15d48d1b8555aabf012b06bf39bf8aa4768a (patch) | |
tree | 1eebfa64f672df87806852b00afb2b924b4b5eae /msvc | |
parent | 325e5ac8ddf2cb100a47e39185bc9f134d3b2f98 (diff) | |
download | libusb-aaff15d48d1b8555aabf012b06bf39bf8aa4768a.tar.gz |
Misc: Trim and consolidate header file usage
Refactor libusbi.h to include the set of common header files needed by
every main source file in the library and change these source files to
include libusbi.h first, followed by any non-common headers. Including
libusbi.h first ensures that the config definitions are pulled in and
will eliminate redundant includes in the individual sources files.
Also clean up some whitespace errors and remove unnecessary definitions
in the manually generated config.h files.
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'msvc')
-rw-r--r-- | msvc/config.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/msvc/config.h b/msvc/config.h index 705b59a..ad3dcaa 100644 --- a/msvc/config.h +++ b/msvc/config.h @@ -19,8 +19,6 @@ #pragma warning(disable:4200) /* Disable: warning C4324: structure was padded due to __declspec(align()) */ #pragma warning(disable:4324) -/* Disable: warning C6258: Using TerminateThread does not allow proper thread clean up */ -#pragma warning(disable:6258) /* Disable: warning C4996: 'GetVersionA': was declared deprecated */ #pragma warning(disable:4996) @@ -34,20 +32,17 @@ /* Default visibility */ #define DEFAULT_VISIBILITY /**/ -/* Enable global message logging */ -#define ENABLE_LOGGING 1 - /* Uncomment to start with debug message logging enabled */ // #define ENABLE_DEBUG_LOGGING 1 -/* Uncomment to enabling logging to system log */ -// #define USE_SYSTEM_LOGGING_FACILITY +/* Message logging */ +#define ENABLE_LOGGING 1 + +/* Windows backend */ +#define OS_WINDOWS 1 /* type of second poll() argument */ #define POLL_NFDS_TYPE unsigned int -/* Define to 1 if you have the <sys/types.h> header file. */ -#define HAVE_SYS_TYPES_H 1 - -/* Windows backend */ -#define OS_WINDOWS 1 +/* Uncomment to enabling output to system log */ +// #define USE_SYSTEM_LOGGING_FACILITY |