On 2/4/2009 10:27 AM, Michael Cronenworth wrote: > -------- Original Message -------- > Subject: Re: [sane-devel] sane runs in windows without cygwin > From: Michael Cronenworth <mike at cchtml.com> > To: m. allan noah <kitno455 at gmail.com> > CC: sane-devel at lists.alioth.debian.org > Date: 01/15/2009 09:15 AM > >> >> OK, I wanted to reply before people thought I posted and ran. I'm >> caught in some other programming messes at the moment, but I will >> post a patch with the changes I had to make. A majority of them were >> just #ifdef WIN32 around problem headers or function calls. Give me a >> few days... or weeks. >> > > Without further delay, I bring you patches. > > Remember: fujitsu was the only backend I compiled. All others are > untested/won't compile. I can ACK the sane-wine32-lib.patch looks good... I can ACK bits and pieces of the rest because I don't know any cleaner way to do it. A few specific comments on remaining patches follows.
+#ifdef WIN32 +typedef unsigned short int u_short; +#endif + I recommend changing offending code to use a type from _stdint.h instead of trying to maintain this type of code. If that has issues then at least move this code to acinclude.m4 where there is similar logic to define u_int16_t. I'm not qualified to comment on sanei functions yet... but I wanted to point out I submitted code in last week to remove MSG_WAITALL and MSG_NOWAIT from all platforms since its not in cygwin either. So those pieces of the patches are no longer needed. Chris
