mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 02:39:27 +02:00
* explicit name imports for win32
This commit is contained in:
parent
22fad8dc71
commit
116d2b3f53
@ -2,15 +2,20 @@
|
|||||||
|
|
||||||
{$mode objfpc}
|
{$mode objfpc}
|
||||||
|
|
||||||
|
uses
|
||||||
|
strings;
|
||||||
|
|
||||||
{$ifdef win32}
|
{$ifdef win32}
|
||||||
{$linklib msvcrt}
|
{$linklib msvcrt}
|
||||||
|
procedure printf(const formatstr : pchar; const args : array of const);cdecl; external name 'printf';
|
||||||
|
procedure sprintf(p : pchar;const formatstr : pchar; const args : array of const);cdecl; external name 'sprintf';
|
||||||
{$else}
|
{$else}
|
||||||
{$linklib c}
|
{$linklib c}
|
||||||
|
procedure printf(const formatstr : pchar; const args : array of const);cdecl; external;
|
||||||
|
procedure sprintf(p : pchar;const formatstr : pchar; const args : array of const);cdecl; external;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
uses
|
|
||||||
strings;
|
|
||||||
|
|
||||||
type
|
type
|
||||||
THandle = longint;
|
THandle = longint;
|
||||||
@ -25,9 +30,6 @@ const
|
|||||||
p : pchar = nil;
|
p : pchar = nil;
|
||||||
has_errors : boolean = false;
|
has_errors : boolean = false;
|
||||||
|
|
||||||
procedure printf(const formatstr : pchar; const args : array of const);cdecl; external;
|
|
||||||
procedure sprintf(p : pchar;const formatstr : pchar; const args : array of const);cdecl; external;
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
getmem(p,500);
|
getmem(p,500);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user