Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
698 | serge | 1 | /* |
2 | * _comdef.h Common Macro Definitions |
||
3 | * |
||
4 | * Open Watcom Project |
||
5 | * |
||
6 | * Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved. |
||
7 | * |
||
8 | * This file is automatically generated. Do not edit directly. |
||
9 | * |
||
10 | * ========================================================================= |
||
11 | */ |
||
12 | #ifndef _COMDEF_H_INCLUDED |
||
13 | #define _COMDEF_H_INCLUDED |
||
14 | #if !defined(_ENABLE_AUTODEPEND) |
||
15 | #pragma read_only_file; |
||
16 | #endif |
||
17 | |||
18 | #ifdef _WCDATA |
||
19 | #error The macro _WCDATA is reserved for use by the runtime library. |
||
20 | #endif |
||
21 | #ifdef _WCNEAR |
||
22 | #error The macro _WCNEAR is reserved for use by the runtime library. |
||
23 | #endif |
||
24 | #ifdef _WCFAR |
||
25 | #error The macro _WCFAR is reserved for use by the runtime library. |
||
26 | #endif |
||
27 | #ifdef _WCHUGE |
||
28 | #error The macro _WCHUGE is reserved for use by the runtime library. |
||
29 | #endif |
||
30 | #ifdef _WCI86NEAR |
||
31 | #error The macro _WCI86NEAR is reserved for use by the runtime library. |
||
32 | #endif |
||
33 | #ifdef _WCI86FAR |
||
34 | #error The macro _WCI86FAR is reserved for use by the runtime library. |
||
35 | #endif |
||
36 | #ifdef _WCI86HUGE |
||
37 | #error The macro _WCI86HUGE is reserved for use by the runtime library. |
||
38 | #endif |
||
39 | #ifdef _WCINTERRUPT |
||
40 | #error The macro _WCINTERRUPT is reserved for use by the runtime library. |
||
41 | #endif |
||
42 | #ifdef _WCUNALIGNED |
||
43 | #error The macro _WCUNALIGNED is reserved for use by the runtime library. |
||
44 | #endif |
||
45 | #if __WATCOMC__ > 1240 |
||
46 | #define _WRTLCALL __declspec(__watcall) |
||
47 | #else |
||
48 | #define _WRTLCALL |
||
49 | #endif |
||
50 | #if defined(_M_IX86) |
||
51 | #define _WCNEAR __near |
||
52 | #define _WCFAR __far |
||
53 | #define _WCHUGE __huge |
||
54 | #define _WCINTERRUPT __interrupt |
||
55 | #define _WCUNALIGNED |
||
56 | #if defined(__386__) |
||
57 | #define _WCI86NEAR |
||
58 | #define _WCI86FAR |
||
59 | #define _WCI86HUGE |
||
60 | #else |
||
61 | #define _WCI86NEAR __near |
||
62 | #define _WCI86FAR __far |
||
63 | #define _WCI86HUGE __huge |
||
64 | #endif |
||
65 | #elif defined(__AXP__) |
||
66 | #define _WCNEAR |
||
67 | #define _WCFAR |
||
68 | #define _WCHUGE |
||
69 | #define _WCI86NEAR |
||
70 | #define _WCI86FAR |
||
71 | #define _WCI86HUGE |
||
72 | #define _WCINTERRUPT |
||
73 | #define _WCUNALIGNED __unaligned |
||
74 | #elif defined(__PPC__) |
||
75 | #define _WCNEAR |
||
76 | #define _WCFAR |
||
77 | #define _WCHUGE |
||
78 | #define _WCI86NEAR |
||
79 | #define _WCI86FAR |
||
80 | #define _WCI86HUGE |
||
81 | #define _WCINTERRUPT |
||
82 | #define _WCUNALIGNED __unaligned |
||
83 | #else |
||
84 | #define _WCNEAR |
||
85 | #define _WCFAR |
||
86 | #define _WCHUGE |
||
87 | #define _WCI86NEAR |
||
88 | #define _WCI86FAR |
||
89 | #define _WCI86HUGE |
||
90 | #define _WCINTERRUPT |
||
91 | #define _WCUNALIGNED |
||
92 | #endif |
||
93 | #if defined(M_I86HM) |
||
94 | #define _WCDATA _WCFAR |
||
95 | #elif defined(__SW_ND) || defined(__FUNCTION_DATA_ACCESS) |
||
96 | #define _WCDATA |
||
97 | #else |
||
98 | #define _WCDATA _WCNEAR |
||
99 | #endif |
||
100 | #if defined(__SW_BR) |
||
101 | #if defined(__NT__) |
||
102 | #define _WCRTLINK __declspec(dllimport) _WRTLCALL |
||
103 | #define _WCRTLINKD __declspec(dllimport) |
||
104 | #define _WMRTLINK __declspec(dllimport) _WRTLCALL |
||
105 | #define _WMRTLINKD __declspec(dllimport) |
||
106 | #define _WPRTLINK __declspec(dllimport) _WRTLCALL |
||
107 | #define _WPRTLINKD __declspec(dllimport) |
||
108 | #elif defined(__OS2__) && (defined(__386__) || defined(__PPC__)) |
||
109 | #define _WCRTLINK _WRTLCALL |
||
110 | #define _WCRTLINKD |
||
111 | #define _WMRTLINK _WRTLCALL |
||
112 | #define _WMRTLINKD |
||
113 | #define _WPRTLINK _WRTLCALL |
||
114 | #define _WPRTLINKD |
||
115 | #else |
||
116 | #define _WCRTLINK _WRTLCALL |
||
117 | #define _WCRTLINKD |
||
118 | #define _WMRTLINK _WRTLCALL |
||
119 | #define _WMRTLINKD |
||
120 | #define _WPRTLINK _WRTLCALL |
||
121 | #define _WPRTLINKD |
||
122 | #endif |
||
123 | #else |
||
124 | #ifndef _WCRTLINK |
||
125 | #define _WCRTLINK _WRTLCALL |
||
126 | #endif |
||
127 | #ifndef _WCRTLINKD |
||
128 | #define _WCRTLINKD |
||
129 | #endif |
||
130 | #ifndef _WMRTLINK |
||
131 | #define _WMRTLINK _WRTLCALL |
||
132 | #endif |
||
133 | #ifndef _WMRTLINKD |
||
134 | #define _WMRTLINKD |
||
135 | #endif |
||
136 | #ifndef _WPRTLINK |
||
137 | #define _WPRTLINK _WRTLCALL |
||
138 | #endif |
||
139 | #ifndef _WPRTLINKD |
||
140 | #define _WPRTLINKD |
||
141 | #endif |
||
142 | #endif |
||
143 | /* control import modifier on intrinsic functions */ |
||
144 | #ifndef _WCIRTLINK |
||
145 | #if defined(__INLINE_FUNCTIONS__) |
||
146 | #define _WCIRTLINK _WRTLCALL |
||
147 | #else |
||
148 | #define _WCIRTLINK _WCRTLINK |
||
149 | #endif |
||
150 | #endif |
||
151 | #ifndef _WMIRTLINK |
||
152 | #if defined(__NO_MATH_OPS) || defined(__AXP__) || defined(__PPC__) |
||
153 | #define _WMIRTLINK _WMRTLINK |
||
154 | #else |
||
155 | #define _WMIRTLINK _WRTLCALL |
||
156 | #endif |
||
157 | #endif |
||
158 | #ifndef _WPIRTLINK |
||
159 | #define _WPIRTLINK _WPRTLINK |
||
160 | #endif |
||
161 | /* for MS compatibility */ |
||
162 | #ifndef _CRTAPI1 |
||
163 | #define _CRTAPI1 |
||
164 | #endif |
||
165 | #ifndef _CRTAPI2 |
||
166 | #define _CRTAPI2 |
||
167 | #endif |
||
168 | #ifndef _CRTIMP |
||
169 | #define _CRTIMP _WCRTLINK |
||
170 | #endif |
||
171 | #endif |