• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* config.h.  Manual config for MSVC.  */
2 
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
7 
8 /* Visual Studio 2015 and later defines timespec */
9 #if defined(_MSC_VER) && (_MSC_VER >= 1900)
10 #define _TIMESPEC_DEFINED 1
11 #endif
12 
13 /* Disable: warning C4200: nonstandard extension used : zero-sized array in struct/union */
14 #pragma warning(disable:4200)
15 /* Disable: warning C6258: Using TerminateThread does not allow proper thread clean up */
16 #pragma warning(disable: 6258)
17 /* Disable: warning C4996: 'GetVersionA': was declared deprecated */
18 #pragma warning(disable: 4996)
19 
20 #if defined(_PREFAST_)
21 /* Disable "Banned API" errors when using the MS's WDK OACR/Prefast */
22 #pragma warning(disable:28719)
23 /* Disable "The function 'InitializeCriticalSection' must be called from within a try/except block" */
24 #pragma warning(disable:28125)
25 #endif
26 
27 /* Default visibility */
28 #define DEFAULT_VISIBILITY /**/
29 
30 /* Enable global message logging */
31 #define ENABLE_LOGGING 1
32 
33 /* Uncomment to start with debug message logging enabled */
34 // #define ENABLE_DEBUG_LOGGING 1
35 
36 /* Uncomment to enabling logging to system log */
37 // #define USE_SYSTEM_LOGGING_FACILITY
38 
39 /* type of second poll() argument */
40 #define POLL_NFDS_TYPE unsigned int
41 
42 /* Windows/WinCE backend */
43 #if defined(_WIN32_WCE)
44 #define OS_WINCE 1
45 #define HAVE_MISSING_H
46 #else
47 #define OS_WINDOWS 1
48 #define HAVE_SIGNAL_H 1
49 #define HAVE_SYS_TYPES_H 1
50 #endif
51