Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
58fbf2c4
Commit
58fbf2c4
authored
Jul 18, 2014
by
Kynos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove isnan() and isinf() templated from QGC.h only if prior to Visual Studio 2013
parent
37b02a3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
QGC.h
src/QGC.h
+18
-0
No files found.
src/QGC.h
View file @
58fbf2c4
...
...
@@ -33,6 +33,24 @@
/* Windows fixes */
#ifdef _MSC_VER
#if (_MSC_VER < 1800)
/* only PRIOR to Visual Studio 2013 */
/* Needed define for Eigen */
//#define NOMINMAX
#include <limits>
template
<
typename
T
>
inline
bool
isnan
(
T
value
)
{
return
value
!=
value
;
}
// requires #include <limits>
template
<
typename
T
>
inline
bool
isinf
(
T
value
)
{
return
(
value
==
std
::
numeric_limits
<
T
>::
infinity
()
||
(
-
1
*
value
)
==
std
::
numeric_limits
<
T
>::
infinity
())
&&
std
::
numeric_limits
<
T
>::
has_infinity
;
}
#endif
#elif defined __APPLE__
#include <cmath>
#ifndef isnan
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment