diff --git a/synafpc.pas b/synafpc.pas index 04e8358..4876199 100644 --- a/synafpc.pas +++ b/synafpc.pas @@ -1,9 +1,9 @@ {==============================================================================| -| Project : Ararat Synapse | 001.002.000 | +| Project : Ararat Synapse | 001.003.000 | |==============================================================================| | Content: Utils for FreePascal compatibility | |==============================================================================| -| Copyright (c)1999-2011, Lukas Gebauer | +| Copyright (c)1999-2012, Lukas Gebauer | | All rights reserved. | | | | Redistribution and use in source and binary forms, with or without | @@ -33,7 +33,7 @@ | DAMAGE. | |==============================================================================| | 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. | |==============================================================================| | Contributor(s): | @@ -78,14 +78,16 @@ function LoadLibrary(ModuleName: PChar): TLibHandle; function FreeLibrary(Module: TLibHandle): LongBool; function GetProcAddress(Module: TLibHandle; Proc: PChar): Pointer; function GetModuleFileName(Module: TLibHandle; Buffer: PChar; BufLen: Integer): Integer; -{$ELSE} +{$ELSE} //not FPC type {$IFDEF CIL} TLibHandle = Integer; PtrInt = Integer; {$ELSE} TLibHandle = HModule; - {$IFNDEF WIN64} + {$IFDEF WIN64} + PtrInt = NativeInt; + {$ELSE} PtrInt = Integer; {$ENDIF} {$ENDIF}