]> sigrok.org Git - pulseview.git/commitdiff
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)
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

index 2dfdddc1448bddecd8653918c63204ca63dd266c..2150182f543dd4a52eb974f3352198e8b2b24b66 100644 (file)
@@ -36,6 +36,7 @@ using std::abs;
 using std::back_inserter;
 using std::copy;
 using std::dynamic_pointer_cast;
+using std::isnan;
 using std::max;
 using std::min;
 using std::none_of;