{"action":"created","issue":{"url":"https://api.github.com/repos/diydrones/ardupilot/issues/3553","labels_url":"https://api.github.com/repos/diydrones/ardupilot/issues/3553/labels{/name}","comments_url":"https://api.github.com/repos/diydrones/ardupilot/issues/3553/comments","events_url":"https://api.github.com/repos/diydrones/ardupilot/issues/3553/events","html_url":"https://github.com/diydrones/ardupilot/issues/3553","id":128940714,"number":3553,"title":"Using of isnan function","user":{"login":"approximator","id":5008338,"avatar_url":"https://avatars.githubusercontent.com/u/5008338?v=3","gravatar_id":"","url":"https://api.github.com/users/approximator","html_url":"https://github.com/approximator","followers_url":"https://api.github.com/users/approximator/followers","following_url":"https://api.github.com/users/approximator/following{/other_user}","gists_url":"https://api.github.com/users/approximator/gists{/gist_id}","starred_url":"https://api.github.com/users/approximator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/approximator/subscriptions","organizations_url":"https://api.github.com/users/approximator/orgs","repos_url":"https://api.github.com/users/approximator/repos","events_url":"https://api.github.com/users/approximator/events{/privacy}","received_events_url":"https://api.github.com/users/approximator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-26T20:59:42Z","updated_at":"2016-01-27T22:21:19Z","closed_at":null,"body":"Hi,\r\n\r\nFile: https://github.com/diydrones/ardupilot/blob/master/libraries/AP_Math/quaternion.h#L53\r\nComment: https://github.com/diydrones/ardupilot/commit/c7d5f06b21fa4f4df53a414909bc477c481c2bad#commitcomment-15622602\r\n\r\nI am wondering why isnan is used here instead of std::isnan? \r\nNow it can't be compiled with mingw32 compiler.\r\n\r\nI understand that it is not supposed to be compiled with mingw, but I just curious if there is a reason to call isnan in a such way.\r\n\r\nThank you in advance."},"comment":{"url":"https://api.github.com/repos/diydrones/ardupilot/issues/comments/175890955","html_url":"https://github.com/diydrones/ardupilot/issues/3553#issuecomment-175890955","issue_url":"https://api.github.com/repos/diydrones/ardupilot/issues/3553","id":175890955,"user":{"login":"lucasdemarchi","id":31864,"avatar_url":"https://avatars.githubusercontent.com/u/31864?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasdemarchi","html_url":"https://github.com/lucasdemarchi","followers_url":"https://api.github.com/users/lucasdemarchi/followers","following_url":"https://api.github.com/users/lucasdemarchi/following{/other_user}","gists_url":"https://api.github.com/users/lucasdemarchi/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasdemarchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasdemarchi/subscriptions","organizations_url":"https://api.github.com/users/lucasdemarchi/orgs","repos_url":"https://api.github.com/users/lucasdemarchi/repos","events_url":"https://api.github.com/users/lucasdemarchi/events{/privacy}","received_events_url":"https://api.github.com/users/lucasdemarchi/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T22:21:19Z","updated_at":"2016-01-27T22:21:19Z","body":"Is this the only reason?\r\n\r\nSome functions are missing on some toolchains, particularly the GCC 4.9.3 the PX4 port is using.  If you just replace with std::isnan and it works everywhere it could probably be used."}}