home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
os232.exe
/
INCLUDE
/
NPACKON.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-06-01
|
1KB
|
63 lines
/* this header sets packing to 1 for different compilers */
#ifdef N_PACK_1
#if defined(__BORLANDC__)
#pragma option -a-
#elif defined(N_PLAT_UNIX)
#pragma pack(1)
#else
#pragma pack(1)
#endif
#else /* N_PACK_1 */
#if defined(N_PLAT_DOS) || (defined N_PLAT_MSW && defined N_ARCH_16 && !defined N_PLAT_WNT) || defined(N_PLAT_OS2)
#if defined(__BORLANDC__)
#pragma option -a-
#else
#if defined( _MSC_VER )
#if (_MSC_VER > 600)
#pragma warning(disable:4103)
#endif
#endif
#pragma pack(1)
#endif
#elif defined N_PLAT_WNT && defined N_ARCH_32
/* For Windows NT default pack is 8 */
#pragma warning(disable:4103)
#ifdef N_FORCE_INT_16
/* Force packing to 1 for the thunk layer */
#pragma pack(1)
#else
#pragma pack(4)
#endif
#elif defined N_PLAT_MSW4 && defined N_ARCH_32
/* For Windows 95 default pack is 8 */
#pragma warning(disable:4103)
#pragma pack(1)
#elif defined(N_PLAT_UNIX)
#pragma pack(1)
#endif
#endif /* N_PACK_1 */