X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=libs%2Fwatt32%2Fsys%2Fpackoff.h;fp=libs%2Fwatt32%2Fsys%2Fpackoff.h;h=b40d1b1a01793b9551f05a14ea174cf88d4402b2;hb=214a070238552de6167bbf506cbc23006969a182;hp=0000000000000000000000000000000000000000;hpb=d3c8a942b99443abf0c11d9759994022ed6da597;p=oftp diff --git a/libs/watt32/sys/packoff.h b/libs/watt32/sys/packoff.h new file mode 100644 index 0000000..b40d1b1 --- /dev/null +++ b/libs/watt32/sys/packoff.h @@ -0,0 +1,70 @@ +/*!\file sys/packoff.h + * + * Default packing of structures. + */ + +/*++ + +Copyright (c) 1990,91 Microsoft Corporation + +Module Name: + + packoff.h + +Abstract: + + This file turns packing of structures off. (That is, it enables + automatic alignment of structure fields.) An include file is needed + because various compilers do this in different ways. + + packoff.h is the complement to packon.h. An inclusion of packoff.h + MUST ALWAYS be preceded by an inclusion of packon.h, in one-to-one + correspondence. + +Author: + + Chuck Lenzmeier (chuckl) 4-Mar-1990 + +Revision History: + + 15-Apr-1991 JohnRo + Created lint-able variant. + + 20-Oct-1997 G.Vanem + Added Metaware support + + 05-Jul-1999 G.Vanem + Added LADsoft support + + 01-Nov-2000 G. Vanem + Added Visual C/C++ support + +--*/ + +#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x550) + #pragma option push -b -a8 -pc -A- /*P_O_Push*/ +#endif + +#if !(defined(lint) || defined(_lint)) + #if defined(_MSC_VER) && (_MSC_VER >= 800) + #pragma warning(disable:4103) + #endif + + #if defined(__CCDL__) + #pragma pack() + #elif defined(__HIGHC__) + #pragma pop_align_members(); + #elif defined(__WATCOMC__) && (__WATCOMC__ >= 1000) + #pragma pack(__pop); + #elif (defined(_MSC_VER) && (_MSC_VER > 800)) || \ + (defined(__BORLANDC__) && (__BORLANDC__ >= 0x500)) || \ + defined(__POCC__) || defined(__LCC__) + #pragma pack(pop) + #else + #pragma pack() + #endif +#endif + +#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x550) + #pragma option pop /*P_O_Pop*/ +#endif