summaryrefslogtreecommitdiffstats
path: root/loader/wine/poppack.h
blob: 71047915915c2109a2dcc51220079a531fef10ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifdef __WINE_PSHPACK_H
#undef __WINE_PSHPACK_H

#if defined(__GNUC__) || defined(__SUNPRO_C)
#pragma pack()
#elif defined(__SUNPRO_CC)
#warning "Assumes default alignment is 4"
#pragma pack(4)
#elif !defined(RC_INVOKED)
#error "Restoration of the previous alignment isn't supported by the compiler"
#endif /* defined(__GNUC__) || defined(__SUNPRO_C) ; !defined(RC_INVOKED) */

#else /* defined(__WINE_PSHPACK_H) */
#error "Popping alignment isn't possible since no alignment has been pushed"
#endif /* defined(__WINE_PSHPACK_H) */