home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / PSHPACK8.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  962 b   |  36 lines

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