Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-11-2015, 01:17   #121
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Re: OpenCPN Beta test 4.1.1022 Release

Quote:
So there are more than me using VS2010 and XP, nice!
nan("") is not supported in VS2010 math.h
Hakan, Transmitterdan

Don't forget this concerns not only XP but Vista either. in fact all OS before W7

Quote:
Originally Posted by transmitterdan View Post
I made a new PR. This should work on VS2010 and VS2013.
https://github.com/OpenCPN/OpenCPN/pull/437/files
Transmitterdan

Thanks for you patch. It works
but why you impact Linux and OSX ?

I suggest to do that which works on both my Vista and Linux devices without warning

Jean Pierre

#if defined(__WIN32__)
#define isnan(x) _isnan(x)
+#if _MSC_VER > 1700
+const double qNan = nan("");
+#else
+const double zero = 0;
+const double qNan = (zero / zero);
+#endif // _MSCVER
+#else // end __WIN32
+const double qNan = nan("");
#endif
__________________

__________________
Ptizef is offline   Reply With Quote
Old 07-11-2015, 02:10   #122
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: OpenCPN Beta test 4.1.1022 Release

Today's Git fetch including a "nan("")" solution works great on win10/XP, VS10/13

Thanks
Håkan
__________________

__________________
Hakan is offline   Reply With Quote
Old 07-11-2015, 02:12   #123
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Re: OpenCPN Beta test 4.1.1022 Release

Quote:
Today's Git fetch including a "nan("")" solution works great on win10/XP, VS10/13
Works fine too on Vista/VS10 and Linux
thanks
JP
__________________

__________________
Ptizef is offline   Reply With Quote
Reply

Tags
enc, lease, opencpn

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN for Android Beta test 4.1.530 bdbcat OpenCPN 203 07-05-2017 22:20
OpenCPN Beta test 4.1.925 Release bdbcat OpenCPN 177 04-11-2015 09:16
OpenCPN Beta test 4.1.602 Release bdbcat OpenCPN 193 13-10-2015 09:19
OpenCPN Version 2.2 Beta Test bdbcat OpenCPN 437 15-12-2010 20:17
OpenCPN Version 2.2 Beta Test Bugs / Discussion bdbcat OpenCPN 120 26-09-2010 03:53



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 14:59.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.