push d49b3885cdb0e58b792f6bf912143b7a9a4ea546
[wine/hacks.git] / include / pshpack2.h
blob9fe73b754cae613412eab6b0003b58a81642a130
1 /*
2 * Copyright (C) 1999 Patrik Stridvall
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.
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.
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
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #if defined(__WINE_PSHPACK_H15)
21 /* Depth > 15 */
22 # error "Alignment nesting > 15 is not supported"
24 #else
26 # if !defined(__WINE_PSHPACK_H)
27 # define __WINE_PSHPACK_H 2
28 /* Depth == 1 */
29 # elif !defined(__WINE_PSHPACK_H2)
30 # define __WINE_PSHPACK_H2 2
31 /* Depth == 2 */
32 # define __WINE_INTERNAL_POPPACK
33 # include <poppack.h>
34 # elif !defined(__WINE_PSHPACK_H3)
35 # define __WINE_PSHPACK_H3 2
36 /* Depth == 3 */
37 # define __WINE_INTERNAL_POPPACK
38 # include <poppack.h>
39 # elif !defined(__WINE_PSHPACK_H4)
40 # define __WINE_PSHPACK_H4 2
41 /* Depth == 4 */
42 # define __WINE_INTERNAL_POPPACK
43 # include <poppack.h>
44 # elif !defined(__WINE_PSHPACK_H5)
45 # define __WINE_PSHPACK_H5 2
46 /* Depth == 5 */
47 # define __WINE_INTERNAL_POPPACK
48 # include <poppack.h>
49 # elif !defined(__WINE_PSHPACK_H6)
50 # define __WINE_PSHPACK_H6 2
51 /* Depth == 6 */
52 # define __WINE_INTERNAL_POPPACK
53 # include <poppack.h>
54 # elif !defined(__WINE_PSHPACK_H7)
55 # define __WINE_PSHPACK_H7 2
56 /* Depth == 7 */
57 # define __WINE_INTERNAL_POPPACK
58 # include <poppack.h>
59 # elif !defined(__WINE_PSHPACK_H8)
60 # define __WINE_PSHPACK_H8 2
61 /* Depth == 8 */
62 # define __WINE_INTERNAL_POPPACK
63 # include <poppack.h>
64 # elif !defined(__WINE_PSHPACK_H9)
65 # define __WINE_PSHPACK_H9 2
66 /* Depth == 9 */
67 # define __WINE_INTERNAL_POPPACK
68 # include <poppack.h>
69 # elif !defined(__WINE_PSHPACK_H10)
70 # define __WINE_PSHPACK_H10 2
71 /* Depth == 10 */
72 # define __WINE_INTERNAL_POPPACK
73 # include <poppack.h>
74 # elif !defined(__WINE_PSHPACK_H11)
75 # define __WINE_PSHPACK_H11 2
76 /* Depth == 11 */
77 # define __WINE_INTERNAL_POPPACK
78 # include <poppack.h>
79 # elif !defined(__WINE_PSHPACK_H12)
80 # define __WINE_PSHPACK_H12 2
81 /* Depth == 12 */
82 # define __WINE_INTERNAL_POPPACK
83 # include <poppack.h>
84 # elif !defined(__WINE_PSHPACK_H13)
85 # define __WINE_PSHPACK_H13 2
86 /* Depth == 13 */
87 # define __WINE_INTERNAL_POPPACK
88 # include <poppack.h>
89 # elif !defined(__WINE_PSHPACK_H14)
90 # define __WINE_PSHPACK_H14 2
91 /* Depth == 14 */
92 # define __WINE_INTERNAL_POPPACK
93 # include <poppack.h>
94 # elif !defined(__WINE_PSHPACK_H15)
95 # define __WINE_PSHPACK_H15 2
96 /* Depth == 15 */
97 # define __WINE_INTERNAL_POPPACK
98 # include <poppack.h>
99 # endif
101 # if defined(_MSC_VER) && (_MSC_VER >= 800)
102 # pragma warning(disable:4103)
103 # endif
105 # pragma pack(2)
107 #endif