solitone ha scritto:
> Oliver Eichler wrote:
>> I just made a little change to your dialog and committed the patch to
>> svn. Please svn up and test. If everything is ok I will make a release.
>
> I tried to compile revision 3482, but I get an error while compiling
> CWptDB.cpp--it complains it cannot find identifier 'isnam'.

Apparently VC++ doesn't use isnan(), but _isnan().

So I added the following code in CWptDB.cpp:

--------------------------------------------------------------------
#ifdef WIN32
#include <float.h>  // for _isnan() on VC++
#define isnan(x) _isnan(x)  // VC++ uses _isnan() instead of isnan()
#endif
--------------------------------------------------------------------

Besides, I also had an issue with CTrackDB.cpp--on my platform it 
wouldn't compile because no abs() function supports quint32 arguments.

I therefore used qAbs() instead of abs():

--------------------------------------------------------------------
foreach(const CTrack::pt_t& trkpt, trkpts)
{
   if (qAbs(timestamp - trkpt.timestamp) < delta)                       
    //(abs(timestamp - trkpt.timestamp) < delta)
   {
     delta = qAbs(timestamp - trkpt.timestamp);
           //abs(timestamp - trkpt.timestamp);                  
     if(delta < maxDelta)
     {
       selTrkPt = &trkpt;
     }
   }
}
--------------------------------------------------------------------


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to