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 2013 or later is required */ 9 #if (_MSC_VER < 1800) 10 #error "Visual Studio 2013 or later is required." 11 #endif 12 13 /* Visual Studio 2013 does not support __func__ */ 14 #if (_MSC_VER < 1900) 15 #define __func__ __FUNCTION__ 16 #endif 17 18 /* Visual Studio 2015 and later defines timespec */ 19 #if (_MSC_VER >= 1900) 20 #define _TIMESPEC_DEFINED 1 21 #endif 22 23 /* Disable: warning C4127: conditional expression is constant */ 24 #pragma warning(disable:4127) 25 /* Disable: warning C4200: nonstandard extension used : zero-sized array in struct/union */ 26 #pragma warning(disable:4200) 27 /* Disable: warning C4201: nonstandard extension used : nameless struct/union */ 28 #pragma warning(disable:4201) 29 /* Disable: warning C4324: structure was padded due to __declspec(align()) */ 30 #pragma warning(disable:4324) 31 /* Disable: warning C4996: 'GetVersionExA': was declared deprecated */ 32 #pragma warning(disable:4996) 33 34 #if defined(_PREFAST_) 35 /* Disable "Banned API" errors when using the MS's WDK OACR/Prefast */ 36 #pragma warning(disable:28719) 37 /* Disable "The function 'InitializeCriticalSection' must be called from within a try/except block" */ 38 #pragma warning(disable:28125) 39 #endif 40 41 /* Define to the attribute for default visibility. */ 42 #define DEFAULT_VISIBILITY /**/ 43 44 /* Define to 1 to start with debug message logging enabled. */ 45 /* #undef ENABLE_DEBUG_LOGGING */ 46 47 /* Define to 1 to enable message logging. */ 48 #define ENABLE_LOGGING 1 49 50 /* Define to 1 if compiling for a Windows platform. */ 51 #define PLATFORM_WINDOWS 1 52 53 /* Define to the attribute for enabling parameter checks on printf-like 54 functions. */ 55 #define PRINTF_FORMAT(a, b) /**/ 56 57 /* Define to 1 to output logging messages to the systemwide log. */ 58 /* #undef USE_SYSTEM_LOGGING_FACILITY */ 59