Bug 531

Summary: PV build breaks on MinGW/MacOSX: error: 'isnan' was not declared in this scope
Product: PulseView Reporter: Uwe Hermann <uwe>
Component: PortabilityAssignee: Nobody <nobody>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unreleased development snapshot   
Target Milestone: ---   
Hardware: All   
OS: All   

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.