[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c
From: |
Eric S. Raymond |
Subject: |
Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c |
Date: |
Tue, 8 May 2012 02:33:49 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Bas van Duijnhoven <address@hidden>:
> Hello Gary and all other readers of this thread,
>
> I'm glad to say that i've fixed the compilation error (NAN not defined).
> Not by changing the #DEFINE in nan.h but by changing the source code
> of gpsdclient.c.
>
> I changed line 323 in gpsdclient.c from
> heading = NAN;
> to
> heading = nan("");
>
> This change to using a C99 function instead of a define is in my
> opinion a bit more elegant.
> But im not exactly sure if the behaviour is still ok.
> In any case the result is a error free compiled gspd.
>
> Can anyone verify the change, of give me some pointers as to test
> this change?
This change looks correct, but I'm puzzled as to why it's needed. What
environment are you building for?
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
- [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Bas van Duijnhoven, 2012/05/01
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Gary E. Miller, 2012/05/01
- Message not available
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Gary E. Miller, 2012/05/01
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Bas van Duijnhoven, 2012/05/02
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Gary E. Miller, 2012/05/01
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Bas van Duijnhoven, 2012/05/01
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Gary E. Miller, 2012/05/01
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Bas van Duijnhoven, 2012/05/02
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c,
Eric S. Raymond <=
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Tomalak Geret'kal, 2012/05/02