File: lazutils_defines.inc

package info (click to toggle)
lazarus 2.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 214,460 kB
  • sloc: pascal: 1,862,622; xml: 265,709; cpp: 56,595; sh: 3,008; java: 609; makefile: 535; perl: 297; sql: 222; ansic: 137
file content (18 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Add defines here. This file should be included in all LazUtils units headers


{$undef UTF8_RTL}  // FPC >= 2.7.1 with codepages and default string = CP_UTF8
{$undef ACP_RTL}   // FPC >= 2.7.1 with codepages and default string = CP_ACP
{$undef NO_CP_RTL} // FPC < 2.7.1 before string codepages


{$ifdef FPC_HAS_CPSTRING}
  {$ifndef DisableUTF8RTL}
    {$define UTF8_RTL}
  {$else DisableUTF8RTL}
    {$define ACP_RTL}
  {$endif DisableUTF8RTL}
{$else FPC_HAS_CPSTRING}
  {$define NO_CP_RTL}
  {$undef DisableUTF8RTL}
{$endif FPC_HAS_CPSTRING}