Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
915 B

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. pshpack1.h
  5. Abstract:
  6. This file turns 1 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,1)
  19. #else
  20. #pragma pack(1)
  21. #endif
  22. #else
  23. #pragma pack(1)
  24. #endif
  25. #endif // ! (defined(lint) || defined(RC_INVOKED))