[Nice] various patches for Windows / Visual Studio compilation

Della Betta Filippo filippo.dellabetta at telecomitalia.it
Tue Feb 14 06:11:36 PST 2012

attached you can find some patches that issue some Windows / Visual Studio compilation problem
In particular

-          On file agent.c and tcp-bsd.c , as glib documentation suggests (http://developer.gnome.org/glib/2.28/glib-IO-Channels.html), g_io_channel_unix_new should be avoided. Replaced with g_io_channel_win32_new_socket function on WIN32 platform

-          On file pseudotcp.c, since Visual Studio compiler does not support C99 I put some declarations at the beginning of the statement. Moreover I expanded the macro g_debug to make Visual Studio happy. I tested it on mingw/msys and seems ok

-          On file sha1.h, I included the replacement header win32_common.h instead of the missing header stdint.h (at least on Visual Studio).

-          On file win32_common.h I added , if not defined, typedef on size_t and ssize_t that are not defined on Visual Studio platform, I tested it on mingw/msys as well and seems ok

-          On files test-*.c : most of the time WSAStartup is missing (causing test to fail immediately) , on test-pseudotcp.c EWOULDBLOCK is not defined. Moreover __func__ is missing and is replaced by __FUNCTION__

If you are interested, I can provide you with vcproj and/or sln files for Visual Studio 2008 (as well as config.h specific for Visual Studio)
Filippo Della Betta

Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie.

This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail, Thanks.

[cid:00000000000000000000000000000001 at TI.Disclaimer]Rispetta l'ambiente. Non stampare questa mail se non ? necessario.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20120214/746cf1bb/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patches.txt
URL: <http://lists.freedesktop.org/archives/nice/attachments/20120214/746cf1bb/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo Ambiente_foglia.jpg
Type: image/jpeg
Size: 677 bytes
Desc: logo Ambiente_foglia.jpg
URL: <http://lists.freedesktop.org/archives/nice/attachments/20120214/746cf1bb/attachment-0001.jpg>

More information about the nice mailing list