Mercurial > mplayer.hg
annotate loader/wine/basetsd.h @ 34644:3ed6c81c8dee
Support playback of CDXL files with -demuxer lavf.
author | cehoyos |
---|---|
date | Fri, 17 Feb 2012 20:07:21 +0000 |
parents | a2822f8f5e6d |
children |
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 */ |
f5537cc95b02
Mark modified imported files as such to comply with GPL ¡ø2a.
diego
parents:
14492
diff
changeset
|
10 |
26045 | 11 #ifndef MPLAYER_BASETSD_H |
12 #define MPLAYER_BASETSD_H | |
1 | 13 |
14 #include "config.h" | |
15 | |
16 /* | |
17 * Win32 was easy to implement under Unix since most (all?) 32-bit | |
18 * Unices uses the same type model (ILP32) as Win32, where int, long | |
19 * and pointer are 32-bit. | |
20 * | |
21 * Win64, however, will cause some problems when implemented under Unix. | |
22 * Linux/{Alpha, Sparc64} and most (all?) other 64-bit Unices uses | |
23 * the LP64 type model where int is 32-bit and long and pointer are | |
24 * 64-bit. Win64 on the other hand uses the P64 (sometimes called LLP64) | |
25 * type model where int and long are 32 bit and pointer is 64-bit. | |
26 */ | |
27 | |
28 /* Type model indepent typedefs */ | |
29 | |
14492
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
30 #ifndef __INTEL_COMPILER |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
31 |
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
|
32 #ifndef __int8 |
1 | 33 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
|
34 #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
|
35 #ifndef __uint8 |
1 | 36 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
|
37 #endif |
1 | 38 |
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 #ifndef __int16 |
1 | 40 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
|
41 #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
|
42 #ifndef __uint16 |
1 | 43 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
|
44 #endif |
1 | 45 |
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 #ifndef __int32 |
1 | 47 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
|
48 #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
|
49 #ifndef __uint32 |
1 | 50 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
|
51 #endif |
1 | 52 |
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 #ifndef __int64 |
1 | 54 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
|
55 #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
|
56 #ifndef __uint64 |
1 | 57 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
|
58 #endif |
1 | 59 |
14492
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
60 #else |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
61 |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
62 typedef unsigned __int8 __uint8; |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
63 typedef unsigned __int16 __uint16; |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
64 typedef unsigned __int32 __uint32; |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
65 typedef unsigned __int64 __uint64; |
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 #endif /* __INTEL_COMPILER */ |
34aed601f044
icc support by Darek Ostolski <ostolski at kwantum dot gda dot pl>
diego
parents:
1
diff
changeset
|
68 |
1 | 69 /* Always signed and 32 bit wide */ |
70 | |
71 typedef __int32 LONG32; | |
72 //typedef __int32 INT32; | |
73 | |
74 typedef LONG32 *PLONG32; | |
75 //typedef INT32 *PINT32; | |
76 | |
77 /* Always unsigned and 32 bit wide */ | |
78 | |
79 typedef __uint32 ULONG32; | |
80 typedef __uint32 DWORD32; | |
81 typedef __uint32 UINT32; | |
82 | |
83 typedef ULONG32 *PULONG32; | |
84 typedef DWORD32 *PDWORD32; | |
85 typedef UINT32 *PUINT32; | |
86 | |
87 /* Always signed and 64 bit wide */ | |
88 | |
89 typedef __int64 LONG64; | |
90 typedef __int64 INT64; | |
91 | |
92 typedef LONG64 *PLONG64; | |
93 typedef INT64 *PINT64; | |
94 | |
95 /* Always unsigned and 64 bit wide */ | |
96 | |
97 typedef __uint64 ULONG64; | |
98 typedef __uint64 DWORD64; | |
99 typedef __uint64 UINT64; | |
100 | |
101 typedef ULONG64 *PULONG64; | |
102 typedef DWORD64 *PDWORD64; | |
103 typedef UINT64 *PUINT64; | |
104 | |
105 /* Win32 or Win64 dependent typedef/defines. */ | |
106 | |
107 #ifdef _WIN64 | |
108 | |
109 typedef __int64 INT_PTR, *PINT_PTR; | |
110 typedef __uint64 UINT_PTR, *PUINT_PTR; | |
111 | |
112 #define MAXINT_PTR 0x7fffffffffffffff | |
113 #define MININT_PTR 0x8000000000000000 | |
114 #define MAXUINT_PTR 0xffffffffffffffff | |
115 | |
116 typedef __int32 HALF_PTR, *PHALF_PTR; | |
117 typedef __int32 UHALF_PTR, *PUHALF_PTR; | |
118 | |
119 #define MAXHALF_PTR 0x7fffffff | |
120 #define MINHALF_PTR 0x80000000 | |
121 #define MAXUHALF_PTR 0xffffffff | |
122 | |
123 typedef __int64 LONG_PTR, *PLONG_PTR; | |
124 typedef __uint64 ULONG_PTR, *PULONG_PTR; | |
125 typedef __uint64 DWORD_PTR, *PDWORD_PTR; | |
126 | |
127 #else /* FIXME: defined(_WIN32) */ | |
128 | |
129 typedef __int32 INT_PTR, *PINT_PTR; | |
130 typedef __uint32 UINT_PTR, *PUINT_PTR; | |
131 | |
132 #define MAXINT_PTR 0x7fffffff | |
133 #define MININT_PTR 0x80000000 | |
134 #define MAXUINT_PTR 0xffffffff | |
135 | |
136 typedef __int16 HALF_PTR, *PHALF_PTR; | |
137 typedef __uint16 UHALF_PTR, *PUHALF_PTR; | |
138 | |
139 #define MAXUHALF_PTR 0xffff | |
140 #define MAXHALF_PTR 0x7fff | |
141 #define MINHALF_PTR 0x8000 | |
142 | |
143 typedef __int32 LONG_PTR, *PLONG_PTR; | |
144 typedef __uint32 ULONG_PTR, *PULONG_PTR; | |
145 typedef __uint32 DWORD_PTR, *PDWORD_PTR; | |
146 | |
147 #endif /* defined(_WIN64) || defined(_WIN32) */ | |
148 | |
149 typedef INT_PTR SSIZE_T, *PSSIZE_T; | |
150 typedef UINT_PTR SIZE_T, *PSIZE_T; | |
151 | |
26045 | 152 #endif /* MPLAYER_BASETSD_H */ |