Bug 531 - PV build breaks on MinGW/MacOSX: error: 'isnan' was not declared in this scope
Summary: PV build breaks on MinGW/MacOSX: error: 'isnan' was not declared in this scope
Status: RESOLVED FIXED
Alias: None
Product: PulseView
Classification: Unclassified
Component: Portability (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-01 16:51 CET by Uwe Hermann
Modified: 2015-01-01 22:33 CET (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Hermann 2015-01-01 16:51:42 CET
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)
         ^
Comment 1 Uwe Hermann 2015-01-01 19:48:15 CET
Just noticed this is also happening on Mac OS X (using gcc 4.9).

  error: 'isnan' was not declared in this scope
Comment 2 Uwe Hermann 2015-01-01 22:33:57 CET
Fixed in f9abacf20c85333a3a6be785049e7658967e3104.