mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-03 01:09:50 +01:00
Moves the selection of cwstring vs paswstring vs windows string manager into the widgetsets
git-svn-id: trunk@33921 -
This commit is contained in:
parent
7ef858f2db
commit
a806fac460
@ -1,15 +1,3 @@
|
||||
// Add defines here. This file should be included in all LCL units headers
|
||||
{$define UseCLDefault}
|
||||
|
||||
// For Android, otherwise the LCL will dependent on libc
|
||||
{$IF defined(Android)}//defined(CPUARM) and defined(LINUX)}
|
||||
{$DEFINE DisableCWString}
|
||||
{$DEFINE DisableIconv}
|
||||
// This IFNDEF Windows is for people that hard-code -dAndroid in their LCLBase package,
|
||||
// lets not enable paswstring when compiling for Windows, so we don't need
|
||||
// to keep changing defines to switch between Windows and Android
|
||||
{$IFNDEF Windows}
|
||||
{$DEFINE EnablePasWString}
|
||||
{$ENDIF}
|
||||
{$ENDIF}
|
||||
|
||||
|
||||
@ -32,6 +32,7 @@ unit Interfaces;
|
||||
interface
|
||||
|
||||
uses
|
||||
{$IFNDEF DisableCWString}cwstring,{$ENDIF}
|
||||
InterfaceBase;
|
||||
|
||||
implementation
|
||||
|
||||
@ -32,6 +32,7 @@ unit Interfaces;
|
||||
interface
|
||||
|
||||
uses
|
||||
{$IFNDEF DisableCWString}cwstring,{$ENDIF}
|
||||
InterfaceBase;
|
||||
|
||||
implementation
|
||||
|
||||
@ -29,6 +29,7 @@ unit Interfaces;
|
||||
interface
|
||||
|
||||
uses
|
||||
paswstring,
|
||||
InterfaceBase;
|
||||
|
||||
implementation
|
||||
|
||||
@ -28,6 +28,7 @@ unit Interfaces;
|
||||
interface
|
||||
|
||||
uses
|
||||
{$IFDEF UNIX}{$IFNDEF DisableCWString}cwstring,{$ENDIF}{$ENDIF}
|
||||
InterfaceBase;
|
||||
|
||||
implementation
|
||||
|
||||
@ -30,6 +30,7 @@ unit interfaces;
|
||||
interface
|
||||
|
||||
uses
|
||||
{$IFDEF UNIX}{$IFNDEF DisableCWString}cwstring,{$ENDIF}{$ENDIF}
|
||||
InterfaceBase;
|
||||
|
||||
implementation
|
||||
|
||||
@ -33,10 +33,7 @@ interface
|
||||
uses
|
||||
{$IFDEF Darwin}MacOSAll, {$ENDIF}
|
||||
Classes, SysUtils, Math, TypInfo, Types, FPCAdds, AvgLvlTree, FileUtil,
|
||||
LCLStrConsts, LCLType, WSReferences, LazMethodList, LazUTF8
|
||||
{$IFDEF EnablePasWString}, paswstring{$ENDIF}
|
||||
{$IFNDEF DisableCWString}{$ifdef unix}{$ifndef DisableIconv}, cwstring{$endif}{$endif}{$ENDIF}
|
||||
;
|
||||
LCLStrConsts, LCLType, WSReferences, LazMethodList, LazUTF8;
|
||||
|
||||
type
|
||||
TMethodList = LazMethodList.TMethodList;
|
||||
|
||||
@ -70,8 +70,7 @@ unit Translations;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, LCLProc, FileUtil, StringHashList, LConvEncoding
|
||||
{$IFDEF UNIX}{$IFNDEF DisableCWString}, cwstring{$ENDIF}{$ENDIF};
|
||||
Classes, SysUtils, LCLProc, FileUtil, StringHashList, LConvEncoding;
|
||||
|
||||
type
|
||||
TStringsType = (stLrt, stRst);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user