server: Make create_mutex use struct object_attributes and set the security descripto...
[wine] / include / poppack.h
CommitLineData
0799c1a7
AJ
1/*
2 * Copyright (C) 1999 Patrik Stridvall
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
360a3f91 16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
0799c1a7
AJ
17 */
18
11fdd958
BM
19#if defined(__WINE_PSHPACK_H15)
20# ifndef __WINE_INTERNAL_POPPACK
21# undef __WINE_PSHPACK_H15
22# endif
23/* Depth == 15 */
24
25# if __WINE_PSHPACK_H14 == 1
26# pragma pack(1)
27# elif __WINE_PSHPACK_H14 == 2
28# pragma pack(2)
29# elif __WINE_PSHPACK_H14 == 8
30# pragma pack(8)
31# else
32# pragma pack(4)
33# endif
34
35#elif defined(__WINE_PSHPACK_H14)
36# ifndef __WINE_INTERNAL_POPPACK
37# undef __WINE_PSHPACK_H14
38# endif
39/* Depth == 14 */
40
41# if __WINE_PSHPACK_H13 == 1
42# pragma pack(1)
43# elif __WINE_PSHPACK_H13 == 2
44# pragma pack(2)
45# elif __WINE_PSHPACK_H13 == 8
46# pragma pack(8)
47# else
48# pragma pack(4)
49# endif
50
51#elif defined(__WINE_PSHPACK_H13)
52# ifndef __WINE_INTERNAL_POPPACK
53# undef __WINE_PSHPACK_H13
54# endif
55/* Depth == 13 */
56
57# if __WINE_PSHPACK_H12 == 1
58# pragma pack(1)
59# elif __WINE_PSHPACK_H12 == 2
60# pragma pack(2)
61# elif __WINE_PSHPACK_H12 == 8
62# pragma pack(8)
63# else
64# pragma pack(4)
65# endif
66
67#elif defined(__WINE_PSHPACK_H12)
68# ifndef __WINE_INTERNAL_POPPACK
69# undef __WINE_PSHPACK_H12
70# endif
71/* Depth == 12 */
72
73# if __WINE_PSHPACK_H11 == 1
74# pragma pack(1)
75# elif __WINE_PSHPACK_H11 == 2
76# pragma pack(2)
77# elif __WINE_PSHPACK_H11 == 8
78# pragma pack(8)
79# else
80# pragma pack(4)
81# endif
82
83#elif defined(__WINE_PSHPACK_H11)
84# ifndef __WINE_INTERNAL_POPPACK
85# undef __WINE_PSHPACK_H11
86# endif
87/* Depth == 11 */
88
89# if __WINE_PSHPACK_H10 == 1
90# pragma pack(1)
91# elif __WINE_PSHPACK_H10 == 2
92# pragma pack(2)
93# elif __WINE_PSHPACK_H10 == 8
94# pragma pack(8)
95# else
96# pragma pack(4)
97# endif
98
99#elif defined(__WINE_PSHPACK_H10)
100# ifndef __WINE_INTERNAL_POPPACK
101# undef __WINE_PSHPACK_H10
102# endif
103/* Depth == 10 */
104
105# if __WINE_PSHPACK_H9 == 1
106# pragma pack(1)
107# elif __WINE_PSHPACK_H9 == 2
108# pragma pack(2)
109# elif __WINE_PSHPACK_H9 == 8
110# pragma pack(8)
111# else
112# pragma pack(4)
113# endif
114
115#elif defined(__WINE_PSHPACK_H9)
116# ifndef __WINE_INTERNAL_POPPACK
117# undef __WINE_PSHPACK_H9
118# endif
119/* Depth == 9 */
120
121# if __WINE_PSHPACK_H8 == 1
122# pragma pack(1)
123# elif __WINE_PSHPACK_H8 == 2
124# pragma pack(2)
125# elif __WINE_PSHPACK_H8 == 8
126# pragma pack(8)
127# else
128# pragma pack(4)
129# endif
130
131#elif defined(__WINE_PSHPACK_H8)
132# ifndef __WINE_INTERNAL_POPPACK
133# undef __WINE_PSHPACK_H8
134# endif
135/* Depth == 8 */
136
137# if __WINE_PSHPACK_H7 == 1
138# pragma pack(1)
139# elif __WINE_PSHPACK_H7 == 2
140# pragma pack(2)
141# elif __WINE_PSHPACK_H7 == 8
142# pragma pack(8)
143# else
144# pragma pack(4)
145# endif
146
147#elif defined(__WINE_PSHPACK_H7)
148# ifndef __WINE_INTERNAL_POPPACK
149# undef __WINE_PSHPACK_H7
150# endif
151/* Depth == 7 */
152
153# if __WINE_PSHPACK_H6 == 1
154# pragma pack(1)
155# elif __WINE_PSHPACK_H6 == 2
156# pragma pack(2)
157# elif __WINE_PSHPACK_H6 == 8
158# pragma pack(8)
159# else
160# pragma pack(4)
161# endif
162
163#elif defined(__WINE_PSHPACK_H6)
164# ifndef __WINE_INTERNAL_POPPACK
165# undef __WINE_PSHPACK_H6
166# endif
167/* Depth == 6 */
168
169# if __WINE_PSHPACK_H5 == 1
170# pragma pack(1)
171# elif __WINE_PSHPACK_H5 == 2
172# pragma pack(2)
173# elif __WINE_PSHPACK_H5 == 8
174# pragma pack(8)
175# else
176# pragma pack(4)
177# endif
178
179#elif defined(__WINE_PSHPACK_H5)
180# ifndef __WINE_INTERNAL_POPPACK
181# undef __WINE_PSHPACK_H5
182# endif
183/* Depth == 5 */
184
185# if __WINE_PSHPACK_H4 == 1
186# pragma pack(1)
187# elif __WINE_PSHPACK_H4 == 2
188# pragma pack(2)
189# elif __WINE_PSHPACK_H4 == 8
190# pragma pack(8)
191# else
192# pragma pack(4)
193# endif
194
195#elif defined(__WINE_PSHPACK_H4)
196# ifndef __WINE_INTERNAL_POPPACK
197# undef __WINE_PSHPACK_H4
198# endif
199/* Depth == 4 */
200
201# if __WINE_PSHPACK_H3 == 1
202# pragma pack(1)
203# elif __WINE_PSHPACK_H3 == 2
204# pragma pack(2)
205# elif __WINE_PSHPACK_H3 == 8
206# pragma pack(8)
207# else
208# pragma pack(4)
209# endif
210
211#elif defined(__WINE_PSHPACK_H3)
23a5b79f
FG
212# ifndef __WINE_INTERNAL_POPPACK
213# undef __WINE_PSHPACK_H3
214# endif
215/* Depth == 3 */
216
41d7518a
DP
217# if __WINE_PSHPACK_H2 == 1
218# pragma pack(1)
219# elif __WINE_PSHPACK_H2 == 2
220# pragma pack(2)
221# elif __WINE_PSHPACK_H2 == 8
222# pragma pack(8)
223# else
224# pragma pack(4)
23a5b79f
FG
225# endif
226
227#elif defined(__WINE_PSHPACK_H2)
228# ifndef __WINE_INTERNAL_POPPACK
229# undef __WINE_PSHPACK_H2
230# endif
231/* Depth == 2 */
232
41d7518a
DP
233# if __WINE_PSHPACK_H == 1
234# pragma pack(1)
235# elif __WINE_PSHPACK_H == 2
236# pragma pack(2)
237# elif __WINE_PSHPACK_H == 8
238# pragma pack(8)
239# else
240# pragma pack(4)
23a5b79f
FG
241# endif
242
243#elif defined(__WINE_PSHPACK_H)
244# ifndef __WINE_INTERNAL_POPPACK
245# undef __WINE_PSHPACK_H
246# endif
247/* Depth == 1 */
248
41d7518a 249# if defined(__SUNPRO_CC)
23a5b79f
FG
250# warning "Assuming a default alignment of 4"
251# pragma pack(4)
41d7518a
DP
252# else
253# pragma pack()
23a5b79f
FG
254# endif
255
256#else
257/* Depth == 0 ! */
258
c7a8dde1 259#error "Popping alignment isn't possible since no alignment has been pushed"
23a5b79f
FG
260
261#endif
262
263#undef __WINE_INTERNAL_POPPACK