File: ipdefine.inc

package info (click to toggle)
lazarus 2.0.10%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 219,188 kB
  • sloc: pascal: 1,867,962; xml: 265,716; cpp: 56,595; sh: 3,005; java: 609; makefile: 568; perl: 297; sql: 222; ansic: 137
file content (213 lines) | stat: -rw-r--r-- 6,067 bytes parent folder | download | duplicates (2)
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
{******************************************************************}
{*     IPDEFINE.INC - Include file for compiler defines           *}
{******************************************************************}

(* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is TurboPower Internet Professional
 *
 * The Initial Developer of the Original Code is
 * TurboPower Software
 *
 * Portions created by the Initial Developer are Copyright (C) 2000-2002
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *
 * ***** END LICENSE BLOCK ***** *)

{NOTE: IPDEFINE.INC is included in all Internet Professional units,
       so you can specify global compiler options here. IPDEFINE.INC
       is included *before* each unit's own required compiler options,
       so options specified here could be overridden by hardcoded
       options in the unit source file.}

{$IFDEF LCL}
{$DEFINE IP_LAZARUS}
{$ENDIF}


{$IFDEF IP_LAZARUS}

  {$MODE DELPHI}{$H+}

  {$DEFINE VERSION7}          { Delphi 7.0 or higher }
  {$DEFINE VERSION4}
  {$DEFINE VERSION5}
  {$DEFINE Version6OrHigher}
  {$DEFINE Version7OrHigher}

  // Activate several features of the package by enabling the following DEFINEs.
  // Best flexibility is achieved by doing this in the "Additions and Overrides"
  // of the Project options.

  // Uncomment if you want to enable printing functionality
  // (requires extra build/runtime dependencies for Linux like cairo,etc)
  //{$DEFINE Html_print}

  // Uncomment if you want to disable RTTI access to properties of the HTML nodes
  //{$DEFINE Html_RTTI}

{$ELSE}

{====Compiler options that can be changed====}
{$A+ Force alignment on word/dword boundaries}
{$S- No stack checking}

{====Global fixed compiler options (do NOT change)====}

{$B- Incomplete boolean evaluation}
{$H+ Long string support}
{$J+ Writeable typed constants}
{$P- No open string parameters}
{$Q- No arithmetic overflow checking}
{$R- No range checking}
{$T- No type-checked pointers}
{$V- No var string checking}
{$X+ Extended syntax}
{$Z1 Enumerations are byte sized}

{====General defines=================================================}

{.$DEFINE UseGifImageUnit}

{$IFDEF VER110}
  {.$DEFINE UseJPegUnit}  {BCB3 does not include the JPeg unit by default}
{$ELSE}
  {$DEFINE UseJPegUnit}
{$ENDIF}

// Define the following symbol to use the TIpAnimatedGIFImage class.  To use
// this class, you must have Ander's TGIFImage.
{.$DEFINE AndersGIFImage }

// Define the following symbol to use the TIpAnimatedImageLibImage.  To use
// this class, you must have the ImageLib ILWebImage component.
{.$DEFINE ImageLibGIFImage }

// Define this symbol to use the TIpPNGImage class.  TIpPNGImage requires the
// ZLib library.
{$DEFINE UsePNGGraphic }

// !!.12 Define this symbol to exclude all support for HTTP and sockets in
// an application using the HTML panels, e.g. for HTML based wizards
{.$DEFINE HtmlWithoutHttp}

// Uncomment if you want to enable printing functionality
// (requires extra build/runtime dependencies for Linux like cairo,etc)
{$DEFINE Html_print}

// we do not want to include PNG support when building the design-time package
// (that would cause problems if another package also included ZLib).  We also
// do not want to include units that aren't ours, so we'll undefine the other
// graphics stuff too. When rebuilding the design-time package, the
// 'BuildingDesignTime' define must be defined
{$IFDEF BuildingDesignTime}
  {$UNDEF UseGifImageUnit}
  {$UNDEF AndersGIFImage}
  {$UNDEF ImageLibGIFImage}
  {$UNDEF UsePNGGraphic}
  {$DEFINE HtmlWithoutHttp}
{$ENDIF}

{-------- !! DO NOT CHANGE DEFINES BELOW THIS LINE !! --------}

{ Compiler stoppers for unsupported compilers }

{$IFDEF VER80}
  !!! Internet Professional does not support Delphi 1
{$ENDIF}

{$IFDEF VER90}
  !!! Internet Professional does not support Delphi 2
{$ENDIF}

{$IFDEF VER93}
  !!! Internet Professional does not support C++Builder 1
{$ENDIF}

{$DEFINE VERSION3}            { Delphi 3.0 or BCB 3.0 or higher }

{ General define indicating use under C++ Builder }

{$IFDEF VER110}               { C++ Builder 3 }
 {$DEFINE CBuilder}
 {$ObjExportAll On}
{$ENDIF}

{$IFDEF VER125}               { C++ Builder 4 }
 {$DEFINE CBuilder}
 {$ObjExportAll On}
{$ENDIF}

{$IFDEF VER130}               { Delphi 5 & C++ Builder 5 }
 {$IFDEF BCB}                 { C++ Builder 5 }
  {$DEFINE CBuilder}
  {$ObjExportAll On}
 {$ENDIF}
{$ENDIF}

{$IFDEF VER140}               { Delphi 6 & C++Builder 6 }
  {$IFDEF BCB}                { C++ Builder 6}
    {$DEFINE CBuilder}
    {$ObjExportAll On}
  {$ENDIF}
{$ENDIF}

{$IFDEF VERSION3}
 {$IFNDEF VER100}             { Delphi 3 }
  {$IFNDEF VER110}            { BCB 3 }
   {$DEFINE VERSION4}         { Delphi 4.0 or higher }
  {$ENDIF}
 {$ENDIF}
{$ENDIF}

{$IFDEF VERSION4}
 {$IFNDEF VER120}             { Delphi 4 }
  {$IFNDEF VER125}            { BCB 4 }
   {$DEFINE VERSION5}         { Delphi 5.0 or higher }
  {$ENDIF}
 {$ENDIF}
{$ENDIF}

{$IFDEF VERSION3}
 {$IFNDEF VERSION4}
  {$DEFINE VERSION3ONLY}
 {$ENDIF}
{$ENDIF}

{$IFDEF VERSION3}
  {$IFDEF VER140}
     {$DEFINE VERSION6}         { Delphi 6.0 or higher }
     {$DEFINE Version6OrHigher}
  {$ENDIF}
{$ENDIF}

{$IFDEF VERSION3}
  {$IFDEF VER150}
    {$DEFINE VERSION7}          { Delphi 7.0 or higher }
    {$DEFINE Version6OrHigher}
    {$DEFINE Version7OrHigher}
  {$ENDIF}
{$ENDIF}

{$IFDEF VERSION7}
  {$WARN UNIT_PLATFORM OFF}
  {$WARN UNSAFE_CODE OFF}
  {$WARN UNSAFE_TYPE OFF}
  {$WARN UNSAFE_CAST OFF}
  {$WARN UNIT_DEPRECATED OFF}
{$ENDIF}

{$ENDIF}