Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 07-11-2015, 00:17   #121
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
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, 01:10   #122
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
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, 01:12   #123
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
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


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 21:20
OpenCPN Beta test 4.1.925 Release bdbcat OpenCPN 177 04-11-2015 08:16
OpenCPN Beta test 4.1.602 Release bdbcat OpenCPN 193 13-10-2015 08:19
OpenCPN Version 2.2 Beta Test bdbcat OpenCPN 437 15-12-2010 19:17
OpenCPN Version 2.2 Beta Test Bugs / Discussion bdbcat OpenCPN 120 26-09-2010 02:53

Advertise Here


All times are GMT -7. The time now is 16:11.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.