Fixed issue #3770: TortoiseGitMerge can't apply NonANSI (e.g., UTF-8) patch
[TortoiseGit.git] / src / TortoiseIDiff / stdafx.h
blob62953a9d97c731e5f036bee1f46d9b3479ea0a91
1 // stdafx.h : include file for standard system include files,
2 // or project specific include files that are used frequently, but
3 // are changed infrequently
4 //
6 #pragma once
8 // Modify the following defines if you have to target a platform prior to the ones specified below.
9 // Refer to MSDN for the latest info on corresponding values for different platforms.
10 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
12 #include <SDKDDKVer.h>
14 #define NOMINMAX
15 #include <algorithm>
16 using std::max;
17 using std::min;
19 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
21 // turns off MFC's hiding of some common and often safely ignored warning messages
22 #define _AFX_ALL_WARNINGS
24 #pragma warning(push)
25 #pragma warning(disable : 4459)
26 #include <afx.h>
27 #pragma warning(pop)
28 #include <ShlObj.h>
29 #include <Shlwapi.h>
31 // C RunTime Header Files
32 #include <stdlib.h>
33 #include <malloc.h>
34 #include <memory.h>
35 #include <comdef.h>
37 #include "MyMemDC.h"
39 #include <atlbase.h>
41 #include "git2.h"
42 #include "SmartLibgit2Ref.h"
44 #include "scope_exit_noexcept.h"
46 #ifdef _WIN64
47 # define APP_X64_STRING "x64"
48 #else
49 # define APP_X64_STRING ""
50 #endif
52 #define REGSTRING_DARKTHEME L"Software\\TortoiseGit\\IDiffDarkTheme"