Delphi Pulsar fixes for WIN64 target.

git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@144 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
geby 2011-05-18 14:29:38 +00:00
parent 7fb761d1aa
commit b45a8ef4e9

View File

@ -1,9 +1,9 @@
{==============================================================================| {==============================================================================|
| Project : Ararat Synapse | 002.002.003 | | Project : Ararat Synapse | 002.003.000 |
|==============================================================================| |==============================================================================|
| Content: Socket Independent Platform Layer - Win32 definition include | | Content: Socket Independent Platform Layer - Win32/64 definition include |
|==============================================================================| |==============================================================================|
| Copyright (c)1999-2010, Lukas Gebauer | | Copyright (c)1999-2011, 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-2010. | | Portions created by Lukas Gebauer are Copyright (c)2003-2011. |
| All Rights Reserved. | | All Rights Reserved. |
|==============================================================================| |==============================================================================|
| Contributor(s): | | Contributor(s): |
@ -236,6 +236,14 @@ For IPv6 support you must have new API!
(*$HPPEMIT '#undef PF_INET6' *) (*$HPPEMIT '#undef PF_INET6' *)
{$ENDIF} {$ENDIF}
{$IFDEF FPC}
{$IFDEF WIN32}
{$ALIGN OFF}
{$ELSE}
{$PACKRECORDS C}
{$ENDIF}
{$ENDIF}
interface interface
uses uses
@ -261,17 +269,25 @@ type
{$IFDEF FPC} {$IFDEF FPC}
TSocket = ptruint; TSocket = ptruint;
{$ELSE} {$ELSE}
{$IFDEF WIN64}
TSocket = UINT_PTR;
{$ELSE}
TSocket = u_int; TSocket = u_int;
{$ENDIF}
{$ENDIF} {$ENDIF}
TAddrFamily = integer; TAddrFamily = integer;
TMemory = pointer; TMemory = pointer;
const const
{$IFDEF WINSOCK1} {$IFDEF WINCE}
DLLStackName = 'wsock32.dll'; DLLStackName = 'ws2.dll';
{$ELSE} {$ELSE}
{$IFDEF WINSOCK1}
DLLStackName = 'wsock32.dll';
{$ELSE}
DLLStackName = 'ws2_32.dll'; DLLStackName = 'ws2_32.dll';
{$ENDIF}
{$ENDIF} {$ENDIF}
DLLwship6 = 'wship6.dll'; DLLwship6 = 'wship6.dll';