MSVC Portability

Tomasz Wasilczyk tomkiewicz.groups at
Tue Apr 2 08:58:08 EDT 2013

2013/3/31 Zoltán Sólyom <z-ismeretlen at>:
>> unistd.h not found in:
>> libpurple/protocols/gg/lib/
>>      dcc7.c
>>      *sha1.c
>>      resolver.c
>>      pubdir.c
>>      libgadu.c
>>      handlers.c
>>      events.c
>>      dcc.c
>>      common.c
>>      dcc7.c (already mentioned above)
>>      http.c
>> inttypes.h not found in:
>> libpurple/protocols/gg/
>>      lib.message.h
>> unistd.h is included in internal.h, so the logic for whether to use
>> io.h should probably be in there. However, these GG files are part of
>> the external GG library, so I'm not sure how Tomasz wants to handle
>> it.
>>> unistd.h not found in:
>>> libpurple/protocols/novell/
>>>      *nmconn.c:
>> See note above.
> Creating an empty unistd.h file which merely includes io.h and putting it in
> any include path just for VS should fix things. Same with an empty
> inttypes.h. That way no source has to be modified.

In newest development version [1][2] of libgadu these includes are
removed, so when upstream gets released and internal libgadu gets
updated (few months, I think), such phantom files won't be necessary.

Are there any further issues with GG code?


More information about the Devel mailing list