home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 December
/
PCWorld_1998-12_cd.iso
/
software
/
sybase
/
ASA
/
asa60.exe
/
data1.cab
/
h_files
/
pshpk2.h
< prev
next >
Wrap
Text File
|
1998-07-27
|
1KB
|
40 lines
/* Include this file to cause 2-byte structure packing. */
#if defined( __WATCOMC__ )
#pragma pack(__push,2);
#elif defined( _MSC_VER ) && _MSC_VER > 800
#pragma pack( push, pshpk, 2 )
#elif defined( __ALPHA__ ) || defined( _CFE ) // SGI's C preprocessor
#if !defined( _NO_PRAGMA_PUSH_PACK )
#define _NO_PRAGMA_PUSH_PACK
#endif
#pragma pack(2);
#elif defined( MAC )
#if defined( __MWERKS__ )
#pragma options align= mac68k
#else
#error "Need a pshpk2.h for this Mac compiler"
#endif
#elif defined( __BORLANDC__ )
#pragma option -a2
#elif defined( __IBMC__ ) || defined( __IBMCPP__ )
#pragma pack( push, 2 )
#elif defined( _AIX ) && !defined(__GNUC__)
#if !defined( _PUSH_PACK_FIRST )
#define _PUSH_PACK_FIRST twobyte
#elif !defined( _PUSH_PACK_SECOND )
#define _PUSH_PACK_SECOND twobyte
#else
#error Tried to push a pack at too great a depth
#endif
#pragma options align=twobyte
#endif
#if defined( _NO_PRAGMA_PUSH_PACK )
#if defined( _PUSH_PACK )
#error Tried to push a pack at too great a depth
#else
#define _PUSH_PACK
#endif
#endif