winsock + DSTRICT

Michael Stefaniuc mstefani at
Mon Oct 28 15:51:54 CST 2002

Hello Martin,

On Mon, Oct 28, 2002 at 04:07:46PM +0100, Martin Wilck wrote:
> here is a patch to make winsock compile without warnings without 
> -DWINE_NO_STRICT. Comments are welcome.
Well, i looked at the patch and it seems resonable. You are the winsock
expert and if you feel confortable with it please submit it to
wine-patches (Alexandre will complain if he dosn't like it ;). One
request: i'm not sure if the compiler will optimize away the assert
from __handle2socket on machines where sizeof(HANDLE) == sizeof(SOCKET).
But if not could you please add something like
if (sizeof(HANDLE) > sizeof(SOCKET)) {
On i386 the size are equal and the assert not needed.

Michael Stefaniuc               Tel.: +49-711-96437-199
System Administration           Fax.: +49-711-96437-111
Red Hat GmbH                    Email: mstefani at
Hauptstaetterstr. 58  
D-70178 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url :

More information about the wine-devel mailing list