From: Uwe Hermann Date: Tue, 30 Dec 2014 10:10:10 +0000 (+0100) Subject: MinGW: Fix a compile error due to missing std::isnan. X-Git-Tag: pulseview-0.3.0~292 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8e21a82cac5eb399dc7158da4b34c664cb4958cd;p=pulseview.git 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) ^ --- diff --git a/pv/view/viewport.cpp b/pv/view/viewport.cpp index 2dfdddc1..2150182f 100644 --- a/pv/view/viewport.cpp +++ b/pv/view/viewport.cpp @@ -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;