home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / pshpack4.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  908b  |  33 lines

  1. /*++
  2.  
  3. Copyright 1995 - 1998 Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     pshpack4.h
  8.  
  9. Abstract:
  10.  
  11.     This file turns 4 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.  
  22. #if ! (defined(lint) || defined(_lint) || defined(RC_INVOKED))
  23. #if ( _MSC_VER >= 800 ) || defined(_PUSHPOP_SUPPORTED)
  24. #pragma warning(disable:4103)
  25. #if !(defined( MIDL_PASS )) || defined( __midl )
  26. #pragma pack(push)
  27. #endif
  28. #pragma pack(4)
  29. #else
  30. #pragma pack(4)
  31. #endif
  32. #endif // ! (defined(lint) || defined(_lint) || defined(RC_INVOKED))
  33.