synafpc.pas - fixed PtrInt definition for WIN64 Delphi target

git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@166 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
geby
2012-10-05 13:34:23 +00:00
parent ebee71530a
commit b37e66f6b7

View File

@ -1,9 +1,9 @@
{==============================================================================| {==============================================================================|
| Project : Ararat Synapse | 001.002.000 | | Project : Ararat Synapse | 001.003.000 |
|==============================================================================| |==============================================================================|
| Content: Utils for FreePascal compatibility | | Content: Utils for FreePascal compatibility |
|==============================================================================| |==============================================================================|
| Copyright (c)1999-2011, Lukas Gebauer | | Copyright (c)1999-2012, Lukas Gebauer |
| All rights reserved. | | All rights reserved. |
| | | |
| Redistribution and use in source and binary forms, with or without | | Redistribution and use in source and binary forms, with or without |
@ -33,7 +33,7 @@
| DAMAGE. | | DAMAGE. |
|==============================================================================| |==============================================================================|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).| | The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
| Portions created by Lukas Gebauer are Copyright (c)2003-2011. | | Portions created by Lukas Gebauer are Copyright (c)2003-2012. |
| All Rights Reserved. | | All Rights Reserved. |
|==============================================================================| |==============================================================================|
| Contributor(s): | | Contributor(s): |
@ -78,14 +78,16 @@ function LoadLibrary(ModuleName: PChar): TLibHandle;
function FreeLibrary(Module: TLibHandle): LongBool; function FreeLibrary(Module: TLibHandle): LongBool;
function GetProcAddress(Module: TLibHandle; Proc: PChar): Pointer; function GetProcAddress(Module: TLibHandle; Proc: PChar): Pointer;
function GetModuleFileName(Module: TLibHandle; Buffer: PChar; BufLen: Integer): Integer; function GetModuleFileName(Module: TLibHandle; Buffer: PChar; BufLen: Integer): Integer;
{$ELSE} {$ELSE} //not FPC
type type
{$IFDEF CIL} {$IFDEF CIL}
TLibHandle = Integer; TLibHandle = Integer;
PtrInt = Integer; PtrInt = Integer;
{$ELSE} {$ELSE}
TLibHandle = HModule; TLibHandle = HModule;
{$IFNDEF WIN64} {$IFDEF WIN64}
PtrInt = NativeInt;
{$ELSE}
PtrInt = Integer; PtrInt = Integer;
{$ENDIF} {$ENDIF}
{$ENDIF} {$ENDIF}