Browse Source

* PChar -> PAnsiChar

Michaël Van Canneyt 2 years ago
parent
commit
878e9349e8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/libffi/examples/simple.pp

+ 2 - 2
packages/libffi/examples/simple.pp

@@ -3,7 +3,7 @@ program simple;
 uses
 uses
   ffi;
   ffi;
 
 
-function WritePChar(s: PChar): LongInt;{$ifdef windows}stdcall;{$else}cdecl;{$endif}
+function WritePChar(s: PAnsiChar): LongInt;{$ifdef windows}stdcall;{$else}cdecl;{$endif}
 begin
 begin
   Writeln(s);
   Writeln(s);
   WritePChar := StrLen(s);
   WritePChar := StrLen(s);
@@ -13,7 +13,7 @@ var
   cif: ffi_cif;
   cif: ffi_cif;
   args: array[0..0] of pffi_type;
   args: array[0..0] of pffi_type;
   values: array[0..0] of Pointer;
   values: array[0..0] of Pointer;
-  s: PChar;
+  s: PAnsiChar;
   rc: ffi_arg;
   rc: ffi_arg;
 begin
 begin
   args[0] := @ffi_type_pointer;
   args[0] := @ffi_type_pointer;