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