blob: eb0a805b3c5d4cd5b50902b7fe4fbd43095d1d49 [file] [log] [blame]
Francois Gouget23a5b792000-10-19 20:20:07 +00001#if defined(__WINE_PSHPACK_H3)
Patrik Stridvallc7a8dde1999-04-25 12:36:53 +00002
Francois Gouget23a5b792000-10-19 20:20:07 +00003 /* Depth > 3 */
4# error "Alignment nesting > 3 is not supported"
Patrik Stridvallc7a8dde1999-04-25 12:36:53 +00005
Francois Gouget23a5b792000-10-19 20:20:07 +00006#else
Patrik Stridvallc7a8dde1999-04-25 12:36:53 +00007
Francois Gouget23a5b792000-10-19 20:20:07 +00008# if !defined(__WINE_PSHPACK_H)
9# define __WINE_PSHPACK_H 4
10 /* Depth == 1 */
11# elif !defined(__WINE_PSHPACK_H2)
12# define __WINE_PSHPACK_H2 4
13 /* Depth == 2 */
14# define __WINE_INTERNAL_POPPACK
15# include "poppack.h"
16# elif !defined(__WINE_PSHPACK_H3)
17# define __WINE_PSHPACK_H3 4
18 /* Depth == 3 */
19# define __WINE_INTERNAL_POPPACK
20# include "poppack.h"
21# endif
22
23# if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
24# pragma pack(4)
25# elif !defined(RC_INVOKED)
26# error "Adjusting the alignment is not supported with this compiler"
27# endif
28
29#endif