nim_duilib/build/winsdk_config.h

39 lines
764 B
C
Raw Permalink Normal View History

2019-04-19 17:19:57 +08:00
// The basic configuration of Windows SDK and CRT
#ifndef BUILD_WINSDK_CONFIG_H_
#define BUILD_WINSDK_CONFIG_H_
#if !defined(OS_WIN)
#error "Preprocessing symbol 'OS_WIN' needed :-)"
#endif
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN
#endif
#ifndef WIN32_LEAN_AND_MEAN // remove rarely used header files, including 'winsock.h'
#define WIN32_LEAN_AND_MEAN // which will conflict with 'winsock2.h'
#endif
#ifndef WINVER
#define WINVER _WIN32_WINNT_WINXP
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT _WIN32_WINNT_WINXP
#endif
#ifndef _WIN32_WINDOWS
#define _WIN32_WINDOWS _WIN32_WINNT_WINXP
#endif
#ifndef _WIN32_IE
#define _WIN32_IE _WIN32_IE_IE60
#endif
#ifdef COMPILER_MSVC
#pragma warning(disable: 4996)
#endif
#endif // BUILD_WINSDK_CONFIG_H_