lazarus/components/lazutils/lazutils_defines.inc
2016-07-03 15:15:09 +00:00

19 lines
547 B
PHP

// 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}