-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprecomp.h
57 lines (45 loc) · 1008 Bytes
/
precomp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef PANIVIEW_PRECOMP_H
#define PANIVIEW_PRECOMP_H
#ifndef _UNICODE
#define _UNICODE
#endif /* _UNICODE */
#ifndef UNICODE
#define UNICODE
#endif /* UNICODE */
#include <assert.h>
/* fix clang linter jokes
*
* I don't know WHY actually it swears about unknown typenames `interface` and
* `BOOL` in sholbjidl.h and d2d1*.h files. Therefore it defined and it pops a
* warning about redefinition.
*
* __OBJC__ macro huh?
* */
#ifdef __OBJC__
#undef __OBJC__
#endif
#ifdef __OBJC_BOOL
#undef __OBJC_BOOL
#endif
#ifdef __objc_INCLUDE_GNU
#undef __objc_INCLUDE_GNU
#endif
#ifdef _NO_BOOL_TYPEDEF
#undef _NO_BOOL_TYPEDEF
#endif
#include <math.h>
/* WinAPI headers */
#define WINDOWS_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <richedit.h>
#include <shlwapi.h>
#include <shlobj.h>
#include <shobjidl.h>
#include <strsafe.h>
#include <pathcch.h>
/* Direct2D headers */
#include "d2dwrapper.h"
#include <wincodec.h>
#endif /* PANIVIEW_PRECOMP_H */