hotplug: Document LIBUSB_HOTPLUG_ENUMERATE gotchas
[libusbx.git] / msvc / config.h
blob4b418db11d7f9252ef38e3551a78706fd14ae06e
1 /* config.h. Manual config for MSVC. */
3 #ifndef _MSC_VER
4 #warn "msvc/config.h shouldn't be included for your development environment."
5 #error "Please make sure the msvc/ directory is removed from your build path."
6 #endif
8 /* Disable: warning C4200: nonstandard extension used : zero-sized array in struct/union */
9 #pragma warning(disable:4200)
10 /* Disable: warning C6258: Using TerminateThread does not allow proper thread clean up */
11 #pragma warning(disable: 6258)
12 #if defined(_PREFAST_)
13 /* Disable "Banned API" errors when using the MS's WDK OACR/Prefast */
14 #pragma warning(disable:28719)
15 /* Disable "The function 'InitializeCriticalSection' must be called from within a try/except block" */
16 #pragma warning(disable:28125)
17 #endif
19 /* Default visibility */
20 #define DEFAULT_VISIBILITY /**/
22 /* Enable global message logging */
23 #define ENABLE_LOGGING 1
25 /* Uncomment to start with debug message logging enabled */
26 // #define ENABLE_DEBUG_LOGGING 1
28 /* Uncomment to enabling logging to system log */
29 // #define USE_SYSTEM_LOGGING_FACILITY
31 /* type of second poll() argument */
32 #define POLL_NFDS_TYPE unsigned int
34 /* Windows/WinCE backend */
35 #if defined(_WIN32_WCE)
36 #define OS_WINCE 1
37 #define HAVE_MISSING_H
38 #else
39 #define OS_WINDOWS 1
40 #define HAVE_SIGNAL_H 1
41 #define HAVE_SYS_TYPES_H 1
42 #endif