linux: Take hotplug_lock for scan_devices, hotplug_enumerate and _disconnect
[libusbx.git] / msvc / config.h
blobbb542c5dc8355f940ab25383a8d1386d3bc6e07d
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 /* type of second poll() argument */
29 #define POLL_NFDS_TYPE unsigned int
31 /* Windows/WinCE backend */
32 #if defined(_WIN32_WCE)
33 #define OS_WINCE 1
34 #define HAVE_MISSING_H
35 #else
36 #define OS_WINDOWS 1
37 #define HAVE_SIGNAL_H 1
38 #define HAVE_SYS_TYPES_H 1
39 #endif