PopPack.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
源码类别:

模拟服务器

开发平台:

C/C++

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