Skip to content

Commit 72dc8a2

Browse files
committed
include file simplification
1 parent 8f6feff commit 72dc8a2

File tree

2 files changed

+26
-39
lines changed

2 files changed

+26
-39
lines changed

SimpleBaseLib/src/Include/SimpleBaseLib.inc

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,36 @@
1111

1212
(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *)
1313

14+
{========================== Common Compiler Settings ==========================}
15+
16+
{$HINTS OFF}
17+
{$WARNINGS OFF}
18+
{$RANGECHECKS OFF}
19+
{$OVERFLOWCHECKS OFF}
20+
{$SCOPEDENUMS ON}
21+
{$POINTERMATH ON}
22+
23+
{========================= Compiler Specific Settings =========================}
1424

15-
{---------------------------- Compiler Family Switch --------------------------}
1625
{$IFDEF FPC}
17-
{$I SimpleBaseLibFPC.inc} // FPC-specific settings
26+
{$I SimpleBaseLibFPC.inc}
1827
{$ELSE}
28+
// Delphi 2010 and Above
29+
{$IF CompilerVersion < 21.0}
30+
{$MESSAGE ERROR 'This Library requires Delphi 2010 or higher.'}
31+
{$IFEND}
32+
1933
{$DEFINE DELPHI}
20-
{$I ../../SimpleBaseLib/src/Include/SimpleBaseLibDelphi.inc} // Delphi-specific settings
21-
{$ENDIF}
2234

23-
{-------------------------- Common Compiler Settings --------------------------}
24-
{$SCOPEDENUMS ON}
25-
{$OVERFLOWCHECKS OFF}
26-
{$RANGECHECKS OFF}
27-
{$POINTERMATH ON}
28-
{$WARNINGS OFF}
29-
{$HINTS OFF}
35+
{$DEFINITIONINFO ON} // Enable code browsing (Ctrl+Click)
36+
{$STRINGCHECKS OFF}
37+
{$WARN DUPLICATE_CTOR_DTOR OFF}
38+
39+
// XE and Above
40+
{$IF CompilerVersion >= 22.0}
41+
{$DEFINE DELPHIXE_UP}
42+
{$IFEND}
43+
44+
{$ENDIF}
3045

3146
(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *)

SimpleBaseLib/src/Include/SimpleBaseLibDelphi.inc

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)