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
33 lines
915 B
/*++
|
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
Module Name:
|
|
|
|
pshpack2.h
|
|
|
|
Abstract:
|
|
|
|
This file turns 2 byte packing of structures on. (That is, it disables
|
|
automatic alignment of structure fields.) An include file is needed
|
|
because various compilers do this in different ways. For Microsoft
|
|
compatible compilers, this files uses the push option to the pack pragma
|
|
so that the poppack.h include file can restore the previous packing
|
|
reliably.
|
|
|
|
The file poppack.h is the complement to this file.
|
|
|
|
--*/
|
|
|
|
#if ! (defined(lint) || defined(RC_INVOKED))
|
|
#if ( _MSC_VER >= 800 && !defined(_M_I86)) || defined(_PUSHPOP_SUPPORTED)
|
|
#pragma warning(disable:4103)
|
|
#if !(defined( MIDL_PASS )) || defined( __midl )
|
|
#pragma pack(push,2)
|
|
#else
|
|
#pragma pack(2)
|
|
#endif
|
|
#else
|
|
#pragma pack(2)
|
|
#endif
|
|
#endif // ! (defined(lint) || defined(RC_INVOKED))
|