Moved #include "git2.h" to stdafx.h
[TortoiseGit.git] / src / TGitCache / stdafx.h
blobd0061d2c1df3ce17ef615c533e6f43de8de83cde
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)
40 #pragma warning(push)
41 #include "git2.h"
42 #pragma warning(pop)
44 typedef CComCritSecLock<CComAutoCriticalSection> AutoLocker;
46 // Temporary fix for people not using the latest SDK
47 #ifndef PROCESS_MODE_BACKGROUND_BEGIN
48 #define PROCESS_MODE_BACKGROUND_BEGIN 0x00100000
49 #endif
50 #ifndef THREAD_MODE_BACKGROUND_BEGIN
51 #define THREAD_MODE_BACKGROUND_BEGIN 0x00010000
52 #endif
53 #ifndef THREAD_MODE_BACKGROUND_END
54 #define THREAD_MODE_BACKGROUND_END 0x00020000
55 #endif
57 #ifdef _WIN64
58 # define APP_X64_STRING "x64"
59 #else
60 # define APP_X64_STRING ""
61 #endif