]> sigrok.org Git - pulseview.git/commitdiff
Add missing <cmath> #includes.
authorUwe Hermann <redacted>
Fri, 31 Oct 2014 17:49:23 +0000 (18:49 +0100)
committerUwe Hermann <redacted>
Fri, 31 Oct 2014 17:49:23 +0000 (18:49 +0100)
Some compilers throw warnings/errors otherwise:

  error: no member named 'abs' in namespace 'std'; did you mean '::abs'?"

pv/view/viewport.cpp
pv/widgets/sweeptimingwidget.cpp

index b141c38ae35ab29b2b44233bff6e8d13be16de3d..c45e455b0ac091abe812f67279d4500196c2064c 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include <cassert>
+#include <cmath>
 
 #include "view.h"
 #include "viewport.h"
index 7a734a134ede774702094792341dcbbf7e9df462..685523ab3039c19e770baeff13c9c6c15b92926c 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "sweeptimingwidget.h"
 
+#include <cmath>
+
 #include <vector>
 
 #include <assert.h>