-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDragDrop.inc
104 lines (88 loc) · 2.28 KB
/
DragDrop.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
// -----------------------------------------------------------------------------
// Project: Drag and Drop Component Suite
// Module: DragDrop.inc
// Description: This include file contains common defines used by the
// library.
// Authors: Angus Johnson, [email protected]
// Anders Melander, [email protected]
// http://www.melander.dk
// Copyright © 1997-99 Angus Johnson & Anders Melander
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// Detect compiler version
// -----------------------------------------------------------------------------
// Delphi 1.x
{$IFDEF VER80}
{$DEFINE VER8_PLUS}
{$DEFINE VER_OK}
{$ENDIF}
// Delphi 2.x
{$IFDEF VER90}
{$DEFINE VER9x}
{$DEFINE VER9_PLUS}
{$DEFINE VER_OK}
{$ENDIF}
// C++ Builder 1.x
{$IFDEF VER93}
{$DEFINE VER9x}
{$DEFINE VER93_PLUS}
{$DEFINE VER_OK}
{$ENDIF}
// Delphi 3.x
{$IFDEF VER100}
{$DEFINE VER10_PLUS}
{$DEFINE VER_OK}
{$ENDIF}
// C++ Builder 3.x
{$IFDEF VER110}
{$DEFINE VER11_PLUS}
{$DEFINE VER_OK}
{$ENDIF}
// Delphi 4.x
{$IFDEF VER120}
{$DEFINE VER12_PLUS}
{$DEFINE VER_OK}
{$ENDIF}
// C++ Builder 4.x
{$IFDEF VER125}
{$DEFINE VER125_PLUS}
{$DEFINE VER_OK}
{$ENDIF}
// Delphi 5.x
{$IFDEF VER130}
{$DEFINE VER13_PLUS}
{$DEFINE VER_OK}
{$ENDIF}
// Unknown compiler version - assume D4 compatible
{$IFNDEF VER_OK}
{$DEFINE VER12_PLUS}
{$ELSE}
{$UNDEF VER_OK}
{$ENDIF}
{$IFDEF VER13_PLUS}
{$DEFINE VER125_PLUS}
{$ENDIF}
{$IFDEF VER125_PLUS}
{$DEFINE VER12_PLUS}
{$ENDIF}
{$IFDEF VER12_PLUS}
{$DEFINE VER11_PLUS}
{$ENDIF}
{$IFDEF VER11_PLUS}
{$DEFINE VER10_PLUS}
{$ENDIF}
{$IFDEF VER10_PLUS}
{$DEFINE VER93_PLUS}
{$ENDIF}
{$IFDEF VER93_PLUS}
{$DEFINE VER9_PLUS}
{$ENDIF}
{$IFDEF VER9_PLUS}
{$DEFINE VER8_PLUS}
{$ENDIF}
// -----------------------------------------------------------------------------
// Required compiler directives
// -----------------------------------------------------------------------------
{$TYPEDADDRESS OFF} // @ operator returns untyped pointer
{$BOOLEVAL OFF} // Short circuit boolean evaluation
{$EXTENDEDSYNTAX ON} // Enable Delphi Pascal extensions