home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / msinc.pak / PSHPACK8.H < prev    next >
C/C++ Source or Header  |  1997-07-23  |  1KB  |  44 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 files 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. /*
  21.  *      C/C++ Run Time Library - Version 6.5
  22.  *
  23.  *      Copyright (c) 1994 by Borland International
  24.  *      All Rights Reserved.
  25.  *
  26.  */
  27. #pragma nopackwarning
  28.  
  29. #if ! (defined(lint) || defined(_lint))
  30. #  ifndef RC_INVOKED
  31. #    if ( _MSC_VER >= 800 ) || (defined(__BORLANDC__) && defined(__FLAT__))
  32. #      pragma warning(disable:4103)
  33. #      if !(defined( MIDL_PASS )) || defined( __midl )
  34. #        pragma pack(push)
  35. #      endif
  36. #      pragma pack(8)
  37. #    elif defined(__BORLANDC__) && !defined(__FLAT__)
  38. #      error 8-byte packing is not supported!!
  39. #    else
  40. #      pragma pack(8)
  41. #    endif
  42. #  endif // ndef RC_INVOKED
  43. #endif // ! (defined(lint) || defined(_lint))
  44.