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
/
pshpk1.h
< prev
next >
Wrap
Text File
|
1998-07-27
|
1KB
|
40 lines
/* Include this file to cause 1-byte structure packing. */
#if defined( __WATCOMC__ )
#pragma pack(__push,1);
#elif defined( _MSC_VER ) && _MSC_VER > 800
#pragma pack( push, pshpk, 1 )
#elif defined( __ALPHA__ ) || defined( _CFE ) // SGI's C preprocessor
#if !defined( _NO_PRAGMA_PUSH_PACK )
#define _NO_PRAGMA_PUSH_PACK
#endif
#pragma pack(1);
#elif defined( MAC )
#if defined( __MWERKS__ )
#pragma options align= packed
#else
#error "Need a pshpk1.h for this Mac compiler"
#endif
#elif defined( __BORLANDC__ )
#pragma option -a-
#elif defined( __IBMC__ ) || defined( __IBMCPP__ )
#pragma pack( push, 1 )
#elif defined( _AIX ) && !defined(__GNUC__)
#if !defined( _PUSH_PACK_FIRST )
#define _PUSH_PACK_FIRST packed
#elif !defined( _PUSH_PACK_SECOND )
#define _PUSH_PACK_SECOND packed
#else
#error Tried to push a pack at too great a depth
#endif
#pragma options align=packed
#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