22
22
#ifndef _BOINC_WIN_
23
23
#define _BOINC_WIN_
27
// Windows C Runtime Library
30
#define HAVE_STD_MAX 1
34
#define HAVE_STD_MIN 1
37
#ifndef HAVE_STD_TRANSFORM
38
#define HAVE_STD_TRANSFORM 1
25
47
// Under CYGWIN we need to include config.h first.
27
48
#include "config.h"
30
52
// Windows System Libraries
36
58
// platforms we are going to disable the deprecation warnings if we are compiling
37
59
// on Visual Studio 2005
38
60
#if _MSC_VER >= 1400
39
62
#ifndef _CRT_SECURE_NO_DEPRECATE
40
63
#define _CRT_SECURE_NO_DEPRECATE
44
// Modify the following defines if you have to target a platform prior to the ones specified below.
45
// Refer to MSDN for the latest info on corresponding values for different platforms.
46
#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
47
#define WINVER 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
50
#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
51
#define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
54
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
55
#define _WIN32_WINDOWS 0x0400 // Change this to the appropriate value to target Windows Me or later.
58
#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
59
#define _WIN32_IE 0x0500 // Change this to the appropriate value to target IE 5.0 or later.
62
#ifndef WIN32_LEAN_AND_MEAN
63
#define WIN32_LEAN_AND_MEAN // This trims down the windows libraries.
66
#ifndef WIN32_EXTRA_LEAN
67
#define WIN32_EXTRA_LEAN // Trims even farther.
66
#ifndef _CRT_SECURE_NO_WARNINGS
67
#define _CRT_SECURE_NO_WARNINGS
72
// Target Windows 2000 or better with Internet Explorer 5.01 or better
77
#define _WIN32_WINNT 0x0500
79
#ifndef _WIN32_WINDOWS
80
#define _WIN32_WINDOWS 0x0500
83
#define _WIN32_IE 0x0501
70
86
#include <windows.h>
237
250
void __cdecl _fpreset (void);
238
251
void __cdecl fpreset (void);
252
#if (__GNUC__ < 4) // breaks build on MinGW gcc-4
239
253
#define SetClassLongPtr SetClassLong
240
254
#define GCLP_HICON GCL_HICON
241
255
#define GCLP_HICONSM GCL_HICONSM
242
257
#ifdef __cplusplus
247
262
// On the Win32 platform include file and line number information for each
248
263
// memory allocation/deallocation