Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
716 | lvd | 1 | #define _WIN32_WINNT 0x0500 // mouse wheel since win2k |
2 | #define _WIN32_IE 0x0500 // for property sheet in win95. without this will not start in 9x |
||
3 | #define DIRECTINPUT_VERSION 0x05b2 // joystick since dx 5.0 (for NT4, need 3.0) |
||
4 | #define DIRECTSOUND_VERSION 0x0800 |
||
5 | #define DIRECTDRAW_VERSION 0x0500 |
||
6 | #define DIRECT3D_VERSION 0x0900 |
||
7 | //#define _CRT_SECURE_NO_DEPRECATE |
||
8 | #define _CRT_NONSTDC_NO_DEPRECATE |
||
9 | #include <windows.h> |
||
10 | #include <windowsx.h> |
||
11 | #include <setupapi.h> |
||
12 | #include <commctrl.h> |
||
13 | #include "sdk/ddraw.h" |
||
14 | |||
15 | #ifdef _DEBUG |
||
16 | #define D3D_DEBUG_INFO 1 |
||
17 | #endif |
||
18 | |||
19 | #include <d3d9.h> |
||
20 | #include "dinput.h" |
||
21 | #include "dsound.h" |
||
22 | #include "urlmon.h" |
||
23 | #include "mshtmhst.h" |
||
24 | #include <stddef.h> |
||
25 | #include <stdio.h> |
||
26 | #include <ctype.h> |
||
27 | #include <string.h> |
||
28 | #include <stdlib.h> |
||
29 | #include <stddef.h> |
||
30 | #include <limits.h> |
||
31 | #include <malloc.h> |
||
32 | #include <conio.h> |
||
33 | #include <math.h> |
||
34 | #include <process.h> |
||
35 | |||
36 | #ifdef _DEBUG |
||
37 | #ifdef _MSC_VER |
||
38 | #include <crtdbg.h> |
||
39 | #endif |
||
40 | #endif |
||
41 | |||
42 | #if defined(_M_IX86) || defined(_M_X64) |
||
43 | #include <assert.h> |
||
44 | #else |
||
45 | #define assert(x) |
||
46 | #endif |
||
47 | |||
48 | #if _MSC_VER >= 1300 |
||
49 | #include <intrin.h> |
||
50 | #include <emmintrin.h> |
||
51 | #endif |
||
52 | |||
53 | #ifdef __GNUC__ |
||
54 | #include <intrin.h> |
||
55 | #include <mcx.h> |
||
56 | #include <winioctl.h> |
||
57 | #include <algorithm> |
||
58 | using std::min; |
||
59 | using std::max; |
||
60 | #ifdef __clang__ |
||
61 | #include <emmintrin.h> |
||
62 | #else |
||
63 | #include <cpuid.h> |
||
64 | #endif |
||
65 | #endif |
||
66 | |||
67 | #include "sdk/ddk.h" |
||
68 | |||
69 | #include "mods.h" |
||
70 | |||
71 | #pragma comment(lib, "dinput.lib") |
||
72 | #pragma comment(lib, "ddraw.lib") |
||
73 | #pragma comment(lib, "dsound.lib") |
||
74 | #pragma comment(lib, "dxguid.lib") |
||
75 | #pragma comment(lib, "user32.lib") |
||
76 | #pragma comment(lib, "gdi32.lib") |
||
77 | #pragma comment(lib, "shell32.lib") |
||
78 | #pragma comment(lib, "winmm.lib") |
||
79 | #pragma comment(lib, "comdlg32.lib") |
||
80 | #pragma comment(lib, "comctl32.lib") |
||
81 | #pragma comment(lib, "dxerr.lib") |
||
82 | #pragma comment(lib, "setupapi.lib") |
||
83 | //#pragma comment(linker, "settings.res") |
||
84 | |||
85 | #if _MSC_VER >= 1900 |
||
86 | #pragma comment(lib, "legacy_stdio_definitions.lib") |
||
87 | #endif |
||
88 | |||
89 | #define CACHE_LINE 64 |
||
90 | |||
91 | #if _MSC_VER >= 1300 |
||
92 | #define CACHE_ALIGNED __declspec(align(CACHE_LINE)) |
||
93 | #else |
||
94 | #define CACHE_ALIGNED /*Alone Coder*/ |
||
95 | #endif |