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