* Make sure it compiles with dotted units

This commit is contained in:
Michaël Van Canneyt 2024-11-06 16:40:48 +01:00
parent 8450d4f5e7
commit 75987e9f0a

View File

@ -5,7 +5,11 @@ unit wasm.pcrebridge;
interface
uses
{$IFDEF FPC_DOTTEDUNITS}
System.CTypes, System.SysUtils, wasm.regexp.objects;
{$ELSE}
ctypes, sysutils, wasm.regexp.objects;
{$ENDIF}
{$IF SIZEOF(CHAR)=2}
{$DEFINE STRING_IS_UNICODE}
@ -331,7 +335,7 @@ var
begin
{$IFDEF STRING_IS_UNICODE}
Res:='';
RS:='';
SetLength(RS,aSubjectLen);
if aSubjectLen>0 then
Move(aSubject^,RS[1],aSubjectLen* SizeOf(Char));