Windows binary saga

Lubomir I. Ivanov neolit123 at gmail.com
Tue Sep 22 06:14:18 PDT 2015


On 22 September 2015 at 15:05, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
>
> so apart from NO_DOCS=0, the only thing i'm not building at the moment
> is FTDISUPPORT=1, but that's probably doable as well.
>

alright,

so libftdi builds (without the EEPROM part as i don't want to install
the other libconfuse dependency thing), but the local serial_ftdi.c
doesn't compile.

Anton, if you are the maintainer of serial_ftdi.c, please review the
attached patch so that Dirk can apply it

timeradd()/timersub() are a BSD thing, not POSIX and Windows has never
heard of them! :-(
i've added replacements, but that's completely untested.

on this:
#define ERROR ...
such a common name is a bad idea. conflicts with the existent
definition in "wingdi.h", which the GDI people took pretentiously.
i'm renaming it to *ERROR_MSG().

there are also a ton of "const char* -> char *" and similar warnings
(+ bad coding style), but i'm not touching that.

lubomir
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-serial_ftdi-fix-missing-timeradd-timersub-on-Win32.patch
Type: text/x-patch
Size: 9995 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/e6580325/attachment.bin>


More information about the subsurface mailing list