Mercurial > mplayer.hg
annotate loader/wine/basetsd.h @ 24104:b0a47d3bf2f3
Fix blue color for yv12 and i420 image formats in "automute" screen
author | voroshil |
---|---|
date | Thu, 23 Aug 2007 14:20:31 +0000 |
parents | 251338cf2f58 |
children | c98c9e7f3bd0 |
rev | line source |
---|---|
1 | 1 /* |
2 * Compilers that uses ILP32, LP64 or P64 type models | |
3 * for both Win32 and Win64 are supported by this file. | |
4 */ | |
5 | |
15166
f5537cc95b02
Mark modified imported files as such to comply with GPL ¡ø2a.
diego
parents:
14492
diff
changeset
|
6 /* |
18783 | 7 * Modified for use with MPlayer, detailed changelog at |
8 * http://svn.mplayerhq.hu/mplayer/trunk/ | |
15166
f5537cc95b02
Mark modified imported files as such to comply with GPL ¡ø2a.
diego
parents:
14492
diff
changeset
|
9 * $Id$ |
f5537cc95b02
Mark modified imported files as such to comply with GPL ¡ø2a.
diego
parents:
14492
diff
changeset
|
10 */ |
f5537cc95b02
Mark modified imported files as such to comply with GPL ¡ø2a.
diego
parents:
14492
diff
changeset
|
11 |
1 | 12 #ifndef __WINE_BASETSD_H |
13 #define __WINE_BASETSD_H | |
14 | |
15 #include "config.h" | |
16 | |
17 #ifdef __cplusplus | |
18 extern "C" { | |
19 #endif /* defined(__cplusplus) */ | |
20 | |
21 /* | |
22 * Win32 was easy to implement under Unix since most (all?) 32-bit | |
23 * Unices uses the same type model (ILP32) as Win32, where int, long | |
24 * and pointer are 32-bit. | |
25 * | |
26 * Win64, however, will cause some problems when implemented under Unix. | |
27 * Linux/{Alpha, Sparc64} and most (all?) other 64-bit Unices uses | |
28 * the LP64 type model where int is 32-bit and long and pointer are | |
29 * 64-bit. Win64 on the other hand uses the P64 (sometimes called LLP64) | |
30 * type model where int and long are 32 bit and pointer is 64-bit. | |
31 */ | |
32 | |
33 /* Type model indepent typedefs */ | |
34 | |
14492
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
35 #ifndef __INTEL_COMPILER |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
36 |
15691
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
37 #ifndef __int8 |
1 | 38 typedef char __int8; |
15691
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
39 #endif |
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
40 #ifndef __uint8 |
1 | 41 typedef unsigned char __uint8; |
15691
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
42 #endif |
1 | 43 |
15691
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
44 #ifndef __int16 |
1 | 45 typedef short __int16; |
15691
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
46 #endif |
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
47 #ifndef __uint16 |
1 | 48 typedef unsigned short __uint16; |
15691
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
49 #endif |
1 | 50 |
15691
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
51 #ifndef __int32 |
1 | 52 typedef int __int32; |
15691
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
53 #endif |
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
54 #ifndef __uint32 |
1 | 55 typedef unsigned int __uint32; |
15691
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
56 #endif |
1 | 57 |
15691
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
58 #ifndef __int64 |
1 | 59 typedef long long __int64; |
15691
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
60 #endif |
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
61 #ifndef __uint64 |
1 | 62 typedef unsigned long long __uint64; |
15691
0a07aa511c2a
mingw and maybe other system define the __int* types to char, short..., so the typedefs become typedef char char; etc.
faust3
parents:
15166
diff
changeset
|
63 #endif |
1 | 64 |
14492
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
65 #else |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
66 |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
67 typedef unsigned __int8 __uint8; |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
68 typedef unsigned __int16 __uint16; |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
69 typedef unsigned __int32 __uint32; |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
70 typedef unsigned __int64 __uint64; |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
71 |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
72 #endif /* __INTEL_COMPILER */ |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
73 |
1 | 74 #if defined(_WIN64) |
75 | |
76 typedef __uint32 __ptr32; | |
77 typedef void *__ptr64; | |
78 | |
79 #else /* FIXME: defined(_WIN32) */ | |
80 | |
81 typedef void *__ptr32; | |
82 typedef __uint64 __ptr64; | |
83 | |
84 #endif | |
85 | |
86 /* Always signed and 32 bit wide */ | |
87 | |
88 typedef __int32 LONG32; | |
89 //typedef __int32 INT32; | |
90 | |
91 typedef LONG32 *PLONG32; | |
92 //typedef INT32 *PINT32; | |
93 | |
94 /* Always unsigned and 32 bit wide */ | |
95 | |
96 typedef __uint32 ULONG32; | |
97 typedef __uint32 DWORD32; | |
98 typedef __uint32 UINT32; | |
99 | |
100 typedef ULONG32 *PULONG32; | |
101 typedef DWORD32 *PDWORD32; | |
102 typedef UINT32 *PUINT32; | |
103 | |
104 /* Always signed and 64 bit wide */ | |
105 | |
106 typedef __int64 LONG64; | |
107 typedef __int64 INT64; | |
108 | |
109 typedef LONG64 *PLONG64; | |
110 typedef INT64 *PINT64; | |
111 | |
112 /* Always unsigned and 64 bit wide */ | |
113 | |
114 typedef __uint64 ULONG64; | |
115 typedef __uint64 DWORD64; | |
116 typedef __uint64 UINT64; | |
117 | |
118 typedef ULONG64 *PULONG64; | |
119 typedef DWORD64 *PDWORD64; | |
120 typedef UINT64 *PUINT64; | |
121 | |
122 /* Win32 or Win64 dependent typedef/defines. */ | |
123 | |
124 #ifdef _WIN64 | |
125 | |
126 typedef __int64 INT_PTR, *PINT_PTR; | |
127 typedef __uint64 UINT_PTR, *PUINT_PTR; | |
128 | |
129 #define MAXINT_PTR 0x7fffffffffffffff | |
130 #define MININT_PTR 0x8000000000000000 | |
131 #define MAXUINT_PTR 0xffffffffffffffff | |
132 | |
133 typedef __int32 HALF_PTR, *PHALF_PTR; | |
134 typedef __int32 UHALF_PTR, *PUHALF_PTR; | |
135 | |
136 #define MAXHALF_PTR 0x7fffffff | |
137 #define MINHALF_PTR 0x80000000 | |
138 #define MAXUHALF_PTR 0xffffffff | |
139 | |
140 typedef __int64 LONG_PTR, *PLONG_PTR; | |
141 typedef __uint64 ULONG_PTR, *PULONG_PTR; | |
142 typedef __uint64 DWORD_PTR, *PDWORD_PTR; | |
143 | |
144 #else /* FIXME: defined(_WIN32) */ | |
145 | |
146 typedef __int32 INT_PTR, *PINT_PTR; | |
147 typedef __uint32 UINT_PTR, *PUINT_PTR; | |
148 | |
149 #define MAXINT_PTR 0x7fffffff | |
150 #define MININT_PTR 0x80000000 | |
151 #define MAXUINT_PTR 0xffffffff | |
152 | |
153 typedef __int16 HALF_PTR, *PHALF_PTR; | |
154 typedef __uint16 UHALF_PTR, *PUHALF_PTR; | |
155 | |
156 #define MAXUHALF_PTR 0xffff | |
157 #define MAXHALF_PTR 0x7fff | |
158 #define MINHALF_PTR 0x8000 | |
159 | |
160 typedef __int32 LONG_PTR, *PLONG_PTR; | |
161 typedef __uint32 ULONG_PTR, *PULONG_PTR; | |
162 typedef __uint32 DWORD_PTR, *PDWORD_PTR; | |
163 | |
164 #endif /* defined(_WIN64) || defined(_WIN32) */ | |
165 | |
166 typedef INT_PTR SSIZE_T, *PSSIZE_T; | |
167 typedef UINT_PTR SIZE_T, *PSIZE_T; | |
168 | |
169 #ifdef __cplusplus | |
170 } /* extern "C" */ | |
171 #endif /* defined(__cplusplus) */ | |
172 | |
173 #endif /* !defined(__WINE_BASETSD_H) */ | |
174 | |
175 | |
176 |