Samples: Fix compiler warnings in fxload
[libusbx.git] / msvc / config.h
blobe221bab833b3b86f13f16e64dc3ebc831df78fa2
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 #if defined(_PREFAST_)
11 /* Disable "Banned API" errors when using the MS's WDK OACR/Prefast */
12 #pragma warning(disable:28719)
13 /* Disable "The function 'InitializeCriticalSection' must be called from within a try/except block" */
14 #pragma warning(disable:28125)
15 #endif
17 /* Default visibility */
18 #define DEFAULT_VISIBILITY /**/
20 /* Start with debug message logging enabled */
21 //#define ENABLE_DEBUG_LOGGING 1
23 /* Message logging */
24 #define ENABLE_LOGGING 1
26 /* Windows backend */
27 #define OS_WINDOWS 1
29 /* type of second poll() argument */
30 #define POLL_NFDS_TYPE unsigned int