Skip to content

Commit c8eeec3

Browse files
committed
include file simplification
1 parent 96f6a6d commit c8eeec3

File tree

3 files changed

+40
-52
lines changed

3 files changed

+40
-52
lines changed
Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ *********************************************************************************** }
22
{ * QRCodeGenLib Library * }
3-
{ * Copyright (c) 2018 - 2019 Ugochukwu Mmaduekwe * }
3+
{ * Author - Ugochukwu Mmaduekwe * }
44
{ * Github Repository <https://github.com/Xor-el> * }
55

66
{ * Distributed under the MIT software license, see the accompanying file LICENSE * }
@@ -10,21 +10,48 @@
1010

1111
(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *)
1212

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

14-
{---------------------------- Compiler Family Switch --------------------------}
1524
{$IFDEF FPC}
16-
{$I QRCodeGenLibFPC.inc} // FPC-specific settings
25+
{$I QRCodeGenLibFPC.inc}
1726
{$ELSE}
27+
// Delphi XE3 and Above
28+
{$IF CompilerVersion < 24.0}
29+
{$MESSAGE ERROR 'This Library requires Delphi XE3 or higher.'}
30+
{$IFEND}
31+
1832
{$DEFINE DELPHI}
19-
{$I ../../QRCodeGenLib/src/Include/QRCodeGenLibDelphi.inc} // Delphi-specific settings
20-
{$ENDIF}
2133

22-
{-------------------------- Common Compiler Settings --------------------------}
23-
{$SCOPEDENUMS ON}
24-
{$OVERFLOWCHECKS OFF}
25-
{$RANGECHECKS OFF}
26-
{$POINTERMATH ON}
27-
{$WARNINGS OFF}
28-
{$HINTS OFF}
34+
{$DEFINITIONINFO ON} // Enable code browsing (Ctrl+Click)
35+
{$STRINGCHECKS OFF}
36+
{$WARN DUPLICATE_CTOR_DTOR OFF}
37+
38+
{.$DEFINE Framework_FMX} // enable to force FMX mode
39+
{$IFDEF Framework_FMX}
40+
{$UNDEF VCL}
41+
{$DEFINE FMX}
42+
{$ELSE}
43+
{$DEFINE VCL}
44+
{$ENDIF}
45+
46+
{$IFDEF VCL}
47+
{$DEFINE VCL_OR_LCL}
48+
{$ENDIF VCL}
49+
50+
// XE and Above
51+
{$IF CompilerVersion >= 22.0}
52+
{$DEFINE DELPHIXE_UP}
53+
{$IFEND}
54+
55+
{$ENDIF}
2956

3057
(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *)

QRCodeGenLib/src/Include/QRCodeGenLibDelphi.inc

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

QRCodeGenLib/src/Include/QRCodeGenLibFPC.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ *********************************************************************************** }
22
{ * QRCodeGenLib Library * }
3-
{ * Copyright (c) 2018 - 2019 Ugochukwu Mmaduekwe * }
3+
{ * Author - Ugochukwu Mmaduekwe * }
44
{ * Github Repository <https://github.com/Xor-el> * }
55

66
{ * Distributed under the MIT software license, see the accompanying file LICENSE * }

0 commit comments

Comments
 (0)