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

  1. /*++
  2.  
  3. Module Name:
  4.  
  5.     poppack.h
  6.  
  7. Abstract:
  8.  
  9.     This file turns packing of structures off.  (That is, it enables
  10.     automatic alignment of structure fields.)  An include file is needed
  11.     because various compilers do this in different ways.
  12.  
  13.     poppack.h is the complement to pshpack?.h.  An inclusion of poppack.h
  14.     MUST ALWAYS be preceded by an inclusion of one of pshpack?.h, in one-to-one
  15.     correspondence.
  16.  
  17.     For Microsoft compatible compilers, this file uses the pop option
  18.     to the pack pragma so that it can restore the previous saved by the
  19.     pshpack?.h include file.
  20.  
  21. --*/
  22.  
  23. /* $Copyright: 1994$ */
  24. #pragma nopackwarning
  25.  
  26. #if ! (defined(lint) || defined(_lint))
  27. #  if ( _MSC_VER >= 800 ) || (defined(__BORLANDC__))
  28. #    pragma warning(disable:4103)
  29. #    if !(defined( MIDL_PASS )) || defined( __midl )
  30. #      pragma pack(pop)
  31. #    else
  32. #      pragma pack()
  33. #    endif
  34. #  else
  35. #    pragma pack()
  36. #  endif
  37. #endif // ! (defined(lint) || defined(_lint))
  38.