-
Notifications
You must be signed in to change notification settings - Fork 31
/
Compilers_.inc
313 lines (265 loc) · 7.1 KB
/
Compilers_.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
// Copyright (c) 1999-2007 Rob Chandler, www.Helpware.net
// Code originally based on work done by Brad Stowers DFS.inc file
// and Mike Lischke's compilers.inc file (http://www.delphi-gems.com)
// VER80 Delphi 1
// VER90 Delphi 2
// VER100 Delphi 3
// VER120 Delphi 4
// VER130 Delphi 5
// VER140 Delphi 6
// VER150 Delphi 7
// VER160 Delphi 8
// VER170 Delphi 9 (2005)
//----------------------------------------------------------------------------------------------------------------------
{$ifdef CLR} // Common Language Runtime symbol only defined for the .NET platform.
{$define DELPHI.NET}
{$ifdef VER160}
{$define DELPHI.NET_1}
{$define DELHI.NET_1_UP}
{$endif VER160}
{$endif CLR}
{$ifdef Win32}
{$define DELPHI_1_UP}
{$define DELPHI_2_UP}
{$define DELPHI_3_UP}
{$define DELPHI_4_UP}
{$define DELPHI_5_UP}
{$define DELPHI_6_UP}
{$define DELPHI_7_UP}
{$define DELPHI_8_UP}
{$define DELPHI_9_UP}
{$define COMPILER_1_UP}
{$define COMPILER_2_UP}
{$define COMPILER_3_UP}
{$define COMPILER_4_UP}
{$define COMPILER_5_UP}
{$define COMPILER_6_UP}
{$define COMPILER_7_UP}
{$define COMPILER_8_UP}
{$define COMPILER_9_UP}
{$define COMPILER_10_UP}
{$define COMPILER_11_UP}
{$ifdef VER80}
{$undef DELPHI_2_UP}
{$undef DELPHI_3_UP}
{$undef DELPHI_4_UP}
{$undef DELPHI_5_UP}
{$undef DELPHI_6_UP}
{$undef DELPHI_7_UP}
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_2_UP}
{$undef COMPILER_3_UP}
{$undef COMPILER_4_UP}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_1}
{$define DELPHI}
{$define DELPHI_1}
{$endif}
{$IFDEF VER90} //Dephi 2
{$undef DELPHI_3_UP}
{$undef DELPHI_4_UP}
{$undef DELPHI_5_UP}
{$undef DELPHI_6_UP}
{$undef DELPHI_7_UP}
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_3_UP}
{$undef COMPILER_4_UP}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_2}
{$define DELPHI}
{$define DELPHI_2}
{$ENDIF}
{$ifdef VER93}
{$undef COMPILER_3_UP}
{$undef COMPILER_4_UP}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_2} // C_UP_UPB v1 compiler is really v2
{$define CPPB}
{$define CPPB_1}
{$endif}
{$IFDEF VER100} //Dephi 3
{$undef DELPHI_4_UP}
{$undef DELPHI_5_UP}
{$undef DELPHI_6_UP}
{$undef DELPHI_7_UP}
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_4_UP}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_3}
{$define DELPHI}
{$define DELPHI_3}
{$ENDIF}
{$ifdef VER110}
{$undef COMPILER_4_UP}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_3}
{$define CPPB}
{$define CPPB_3}
{$endif}
{$IFDEF VER120} //Dephi 4
{$undef DELPHI_5_UP}
{$undef DELPHI_6_UP}
{$undef DELPHI_7_UP}
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_4}
{$define DELPHI}
{$define DELPHI_4}
{$ENDIF}
{$ifdef VER125}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_4}
{$define CPPB}
{$define CPPB_4}
{$endif}
{$IFDEF VER130} //Dephi 5
{$undef DELPHI_6_UP}
{$undef DELPHI_7_UP}
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_5}
{$ifdef BCB}
{$define CPPB}
{$define CPPB_5}
{$else}
{$define DELPHI}
{$define DELPHI_5}
{$endif}
{$ENDIF}
{$IFDEF VER140} //Dephi 6
{$undef DELPHI_7_UP}
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_6}
{$ifdef BCB}
{$define CPPB}
{$define CPPB_6}
{$else}
{$define DELPHI}
{$define DELPHI_6}
{$endif}
{$ENDIF}
{$IFDEF VER150} //Dephi 7
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_7}
{$ifdef BCB}
{$define CPPB}
{$define CPPB_7}
{$else}
{$define DELPHI}
{$define DELPHI_7}
{$endif}
{$ENDIF}
{$IFDEF VER160} //Dephi 8
{$undef DELPHI_9_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_8}
{$ENDIF}
{$IFDEF VER170} //Dephi 9 (2005)
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_9}
{$ENDIF}
// DELPHI and BCB are no longer defined, only COMPILER
{$IFDEF VER180}
{$undef COMPILER_11_UP}
{$define COMPILER_10}
{$ENDIF}
{$ifdef VER190}
{$define COMPILER_11}
{$endif VER190}
//RWC: Not as forward compatible but it will do for now
{$ifdef CPPB_3}
{$define CPPB_3_UP}
{$endif}
{$ifdef CPPB_4}
{$define CPPB_3_UP}
{$define CPPB_4_UP}
{$endif}
{$ifdef CPPB_5}
{$define CPPB_3_UP}
{$define CPPB_4_UP}
{$define CPPB_5_UP}
{$endif}
{$ifdef CPPB_3_UP}
// C++ Builder requires this if you use Delphi components in run-time packages.
{$ObjExportAll On}
{$endif}
{$else (not Windows)}
// Linux is the target
{$define KYLIX}
{$define KYLIX_1}
{$define KYLIX_1_UP}
{$endif}
/////////////////////////////////////////////////////////////////////////////
// Stop the Platform messages
/////////////////////////////////////////////////////////////////////////////
{$IFDEF DELPHI_6_UP}
{$warn SYMBOL_PLATFORM off}
{$warn UNIT_PLATFORM off}
{$ENDIF}
//----------------------------------------------------------------------------------------------------------------------