]> sigrok.org Git - pulseview.git/commit
MinGW: Fix a compile error due to missing std::isnan.
authorUwe Hermann <redacted>
Tue, 30 Dec 2014 10:10:10 +0000 (11:10 +0100)
committerUwe Hermann <redacted>
Tue, 30 Dec 2014 10:10:10 +0000 (11:10 +0100)
commit8e21a82cac5eb399dc7158da4b34c664cb4958cd
tree6c262740ce8e1f3d90cfe93e9ffa6c363a39f087
parenta0730b3b5924c44083a25e8f7fd4476f85a8590a
MinGW: Fix a compile error due to missing std::isnan.

pv/view/viewport.cpp: In member function 'virtual void pv::view::Viewport::drag_by(const QPoint&)':
pv/view/viewport.cpp:85:24: error: 'isnan' was not declared in this scope
  if (isnan(drag_offset_))
                        ^
pv/view/viewport.cpp:85:24: note: suggested alternative:
In file included from pv/view/viewport.cpp:22:0:
[...]/usr/lib/gcc/i686-w64-mingw32.static/4.9.2/include/c++/cmath:632:5: note:   'std::isnan'
     isnan(_Tp __x)
     ^
pv/view/viewport.cpp