Merge branch '1.8.0'
[TortoiseGit.git] / src / TGitCache / stdafx.h
blobb3faabf875dada3fadcfa7c13991e7666c7027b0
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 #include "..\targetver.h"
10 #include <tchar.h>
11 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
12 #define CSTRING_AVAILABLE
14 #include <WinSock2.h>
15 #include <Ws2tcpip.h>
16 #include <Wspiapi.h>
18 #include <windows.h>
20 #include <Shlobj.h>
21 #include <Shlwapi.h>
23 #include <atlbase.h>
24 #include <atlstr.h>
26 #include <conio.h>
28 using namespace ATL;
30 #pragma warning(push)
31 #pragma warning(disable: 4702) // Unreachable code warnings in xtree
32 #include <string>
33 #include <vector>
34 #include <map>
35 #include <algorithm>
36 #include <deque>
37 #include <functional>
38 #pragma warning(pop)
41 typedef CComCritSecLock<CComAutoCriticalSection> AutoLocker;
43 // Temporary fix for people not using the latest SDK
44 #ifndef PROCESS_MODE_BACKGROUND_BEGIN
45 #define PROCESS_MODE_BACKGROUND_BEGIN 0x00100000
46 #endif
47 #ifndef THREAD_MODE_BACKGROUND_BEGIN
48 #define THREAD_MODE_BACKGROUND_BEGIN 0x00010000
49 #endif
50 #ifndef THREAD_MODE_BACKGROUND_END
51 #define THREAD_MODE_BACKGROUND_END 0x00020000
52 #endif
54 #ifdef _WIN64
55 # define APP_X64_STRING "x64"
56 #else
57 # define APP_X64_STRING ""
58 #endif