2007-09-13 08:50:21 +00:00
|
|
|
#ifdef WINE_PSHPACK_H
|
|
|
|
#undef WINE_PSHPACK_H
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2006-11-27 02:44:06 +00:00
|
|
|
#if (defined(__GNUC__) || defined(__SUNPRO_C)) && !defined(__APPLE__)
|
2001-02-24 20:28:24 +00:00
|
|
|
#pragma pack()
|
2006-11-27 02:44:06 +00:00
|
|
|
#elif defined(__SUNPRO_CC) || defined(__APPLE__)
|
2001-02-24 20:28:24 +00:00
|
|
|
#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) */
|
|
|
|
|
2007-09-13 08:50:21 +00:00
|
|
|
#else /* defined(WINE_PSHPACK_H) */
|
2001-02-24 20:28:24 +00:00
|
|
|
#error "Popping alignment isn't possible since no alignment has been pushed"
|
2007-09-13 08:50:21 +00:00
|
|
|
#endif /* defined(WINE_PSHPACK_H) */
|