Watt-32 tcp/ip  2.2 dev-rel.10
pack_off.h
Go to the documentation of this file.
1 
6 /*++
7 
8 Copyright (c) 1990,91 Microsoft Corporation
9 
10 Module Name:
11 
12  pack_off.h
13 
14 Abstract:
15 
16  This file turns packing of structures off. (That is, it enables
17  automatic alignment of structure fields.) An include file is needed
18  because various compilers do this in different ways.
19 
20  pack_off.h is the complement to pack_on.h. An inclusion of pack_off.h
21  MUST ALWAYS be preceded by an inclusion of pack_on.h, in one-to-one
22  correspondence.
23 
24 Author:
25 
26  Chuck Lenzmeier (chuckl) 4-Mar-1990
27 
28 Revision History:
29 
30  15-Apr-1991 JohnRo
31  Created lint-able variant.
32 
33  20-Oct-1997 G.Vanem
34  Added Metaware support
35 
36  05-Jul-1999 G.Vanem
37  Added LADsoft support
38 
39  01-Nov-2000 G. Vanem
40  Added Visual C/C++ support
41 
42 --*/
43 
44 #if !(defined(lint) || defined(_lint))
45  #if defined(__BORLANDC__) && (__BORLANDC__ >= 0x550)
46  #pragma option push -b -a8 -pc -A- /*P_O_Push*/
47  #endif
48 
49  #if defined(_MSC_VER) && (_MSC_VER >= 800)
50  #pragma warning(disable:4103)
51  #endif
52 
53  #if defined(__CCDL__)
54  #pragma pack()
55  #elif defined(__HIGHC__)
56  #pragma pop_align_members();
57  #elif defined(__WATCOMC__) && (__WATCOMC__ >= 1000)
58  #pragma pack(__pop);
59  #elif (defined(_MSC_VER) && (_MSC_VER > 800)) || \
60  (defined(__BORLANDC__) && (__BORLANDC__ >= 0x500)) || \
61  defined(__POCC__) || defined(__LCC__) || defined(__CYGWIN__)
62  #pragma pack(pop)
63  #else
64  #pragma pack()
65  #endif
66 
67  #if defined(__BORLANDC__) && (__BORLANDC__ >= 0x550)
68  #pragma option pop /*P_O_Pop*/
69  #endif
70 #endif
71