home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April / Chip_1997-04_cd.bin / prezent / cb / data.z / PSHPACK8.H < prev    next >
C/C++ Source or Header  |  1997-01-16  |  1KB  |  38 lines

  1. /*++
  2.  
  3. Module Name:
  4.  
  5.     pshpack8.h
  6.  
  7. Abstract:
  8.  
  9.     This file turns 8 byte packing of structures on.  (That is, it disables
  10.     automatic alignment of structure fields.)  An include file is needed
  11.     because various compilers do this in different ways.  For Microsoft
  12.     compatible compilers, this file uses the push option to the pack pragma
  13.     so that the poppack.h include file can restore the previous packing
  14.     reliably.
  15.  
  16.     The file poppack.h is the complement to this file.
  17.  
  18. --*/
  19.  
  20. /* $Copyright: 1994$ */
  21. #pragma nopackwarning
  22.  
  23. #if ! (defined(lint) || defined(_lint))
  24. #  ifndef RC_INVOKED
  25. #    if ( _MSC_VER >= 800 ) || (defined(__BORLANDC__) && defined(__FLAT__))
  26. #      pragma warning(disable:4103)
  27. #      if !(defined( MIDL_PASS )) || defined( __midl )
  28. #        pragma pack(push)
  29. #      endif
  30. #      pragma pack(8)
  31. #    elif defined(__BORLANDC__) && !defined(__FLAT__)
  32. #      error 8-byte packing is not supported!!
  33. #    else
  34. #      pragma pack(8)
  35. #    endif
  36. #  endif // ndef RC_INVOKED
  37. #endif // ! (defined(lint) || defined(_lint))
  38.