Use min and max of the C++ STL
[TortoiseGit.git] / src / TortoiseProc / stdafx.h
blob3fa28cd57eb3a93d7fcfb6fb1ffcf46f8d6bf0b7
1 // stdafx.h : include file for standard system include files,
2 // or project specific include files that are used frequently,
3 // but are changed infrequently
5 #pragma once
6 #define XMESSAGEBOX_APPREGPATH "Software\\TortoiseGit\\"
8 #include "../targetver.h"
10 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
12 #define NOMINMAX
13 #include <algorithm>
14 using std::max;
15 using std::min;
17 // turns off MFC's hiding of some common and often safely ignored warning messages
18 #define _AFX_ALL_WARNINGS
20 #include <afxwin.h> // MFC core and standard components
21 #include <afxext.h> // MFC extensions
22 #include <WinSock2.h>
23 #include <Ws2tcpip.h>
24 #include <Wspiapi.h>
26 #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
27 #ifndef _AFX_NO_AFXCMN_SUPPORT
28 #include <afxcmn.h> // MFC support for Windows Common Controls
29 #endif // _AFX_NO_AFXCMN_SUPPORT
30 #include <afxdlgs.h>
31 #include <afxctl.h>
32 #include <afxtempl.h>
33 #include <afxmt.h>
34 #include <afxext.h> // MFC extensions
35 #include <afxcontrolbars.h> // MFC support for ribbons and control bars
37 #include <atlbase.h>
39 #include "git2.h"
40 #include "SmartLibgit2Ref.h"
42 #include <string>
43 #include <vector>
44 #include <map>
45 #include <set>
46 #include <functional>
48 #include <vfw.h>
49 #include <shlobj.h>
50 #include <Shlwapi.h>
51 #include <shlguid.h>
52 #include <uxtheme.h>
53 #include <dlgs.h>
54 #include <wininet.h>
55 #include <assert.h>
56 #include <math.h>
57 #include <gdiplus.h>
59 #define __WIN32__
62 #define USE_GDI_GRADIENT
63 #define HISTORYCOMBO_WITH_SYSIMAGELIST
65 #include "scope_exit_noexcept.h"
66 #include "ProfilingInfo.h"
67 #include "DebugOutput.h"
68 #include <afxdhtml.h>
70 #ifdef _WIN64
71 # define APP_X64_STRING "x64"
72 #else
73 # define APP_X64_STRING ""
74 #endif