gnupic: Re: xwisp2 1.7.01 on Mac OS 10.4
Subject:
Fwd: xwisp2 1.7.01 on Mac OS 10.4
From:
Easy B ####@####.####
Date:
17 Sep 2005 16:34:55 +0100
Message-Id: <816A2A0C-BFAC-4492-A2D7-D7FBAA092DD9@freesurf.ch>
Rob, hi again (sorry about the name)
I did some more hacking and now only get this warning, that doesn't
seem that critical, but don't know how to correct it:
xwisp2com.c: In function 'SendReceiveFast':
xwisp2com.c:363: warning: format '%d' expects type 'int', but
argument 3 has type 'size_t'
For min and max I now use the following macros and think they'll do
fine:
#define max(a,b) (((a) > (b)) ? (a) : (b))
#define min(a,b) (((a) < (b)) ? (a) : (b))
What I forgot to tell you is the problem with CBAUD. I understand
that this mask is not in POSIX and that's why it's not on FreeBSD
like systems. I now use #define CBAUD 0010017 like it's defined on
Linux but there's got to be a nicer solution. I haven't had the time
to do more research on that. Any Ideas?
Further I need the possibility to use serial ports like /dev/
tty.usbserial0 or /dev/tty.USA19912P1.1. Is that already possible?
Can you give me any hints?
Hope this time the list receives this email too.
Cheers,
Ezra.
Anfang der weitergeleiteten E-Mail:
> Von: Easy B ####@####.####
> Datum: 17. September 2005 14:25:54 GMT+02:00
> An: Rob Hamerling ####@####.####
> Kopie: List GNUPIC ####@####.####
> Betreff: xwisp2 1.7.01 on Mac OS 10.4
>
>
> Hi Bob
>
> First of all I want to thank you for your effort on making your app
> compile with gcc. I successfully compiled it on my debian box
> without an error or waring. But of course I also tried to compile
> xwisp2 on my Mac and kinda managed. Some functions you used don't
> exist on my system so tried to replace them with the equivalent. To
> be exact following functions are a problem: stricmp, strnicmp, min,
> max. The first two function I replaced with strcmp and strncmp from
> string.h that i think works fine. The min and max function I tried
> to replace with fmin an fmax from math.h but I'm not sure this is
> the right thing to do because I get warnings like this: warning:
> incompatible implicit declaration of built-in function 'fmax'
>
> However, it compiles and starts up, but I don't know if it
> functions right. I got the parts for my wisp628 but haven't built
> it yet. It would be cool if you could have a look at the attached
> files and tell me what you think.
>
> If I can help in any way I'd be glad to.
>
> Cheers,
> Ezra.