mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 16:09:17 +02:00
Add wide string needed units for go32v2 or darwin
git-svn-id: trunk@38736 -
This commit is contained in:
parent
980df21fee
commit
e69a7489d9
@ -1,9 +1,24 @@
|
|||||||
{ %version=1.1 }
|
{ %version=1.1 }
|
||||||
|
|
||||||
|
{$ifdef go32v2}
|
||||||
|
{$define USE_FPWIDESTRING_UNIT}
|
||||||
|
{$define USE_UNICODEDUCET_UNIT}
|
||||||
|
{$endif}
|
||||||
|
|
||||||
{$ifdef fpc}
|
{$ifdef fpc}
|
||||||
{$ifdef unix}
|
{$ifdef unix}
|
||||||
|
{$ifdef darwin}
|
||||||
|
uses
|
||||||
|
iosxwstr;
|
||||||
|
{$else}
|
||||||
uses
|
uses
|
||||||
cwstring;
|
cwstring;
|
||||||
|
{$endif}
|
||||||
|
{$endif}
|
||||||
|
{$ifdef go32v2}
|
||||||
|
uses
|
||||||
|
fpwidestring,
|
||||||
|
unicodeducet;
|
||||||
{$endif}
|
{$endif}
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
|
@ -30,7 +30,22 @@
|
|||||||
{$R-}
|
{$R-}
|
||||||
{$Q-}
|
{$Q-}
|
||||||
|
|
||||||
uses {$ifdef unix}cwstring, {$endif}SysUtils,erroru;
|
{$ifdef go32v2}
|
||||||
|
{$define USE_FPWIDESTRING_UNIT}
|
||||||
|
{$define USE_UNICODEDUCET_UNIT}
|
||||||
|
{$endif}
|
||||||
|
|
||||||
|
uses
|
||||||
|
{$ifdef unix}
|
||||||
|
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||||
|
{$endif}
|
||||||
|
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||||
|
fpwidestring,
|
||||||
|
{$endif}
|
||||||
|
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||||
|
unicodeducet,
|
||||||
|
{$endif}
|
||||||
|
SysUtils,erroru;
|
||||||
|
|
||||||
procedure Check(a,b:ansistring);
|
procedure Check(a,b:ansistring);
|
||||||
begin
|
begin
|
||||||
|
@ -2,7 +2,21 @@
|
|||||||
This is a variation of tb0488a
|
This is a variation of tb0488a
|
||||||
}
|
}
|
||||||
|
|
||||||
uses {$ifdef unix}cwstring, {$endif}SysUtils,erroru;
|
{$ifdef go32v2}
|
||||||
|
{$define USE_FPWIDESTRING_UNIT}
|
||||||
|
{$define USE_UNICODEDUCET_UNIT}
|
||||||
|
{$endif}
|
||||||
|
uses
|
||||||
|
{$ifdef unix}
|
||||||
|
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||||
|
{$endif}
|
||||||
|
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||||
|
fpwidestring,
|
||||||
|
{$endif}
|
||||||
|
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||||
|
unicodeducet,
|
||||||
|
{$endif}
|
||||||
|
SysUtils,erroru;
|
||||||
|
|
||||||
procedure Check(a,b:ansistring);
|
procedure Check(a,b:ansistring);
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user