PshPack2.h
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 1k
Development Platform:

C/C++

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