]> sigrok.org Git - pulseview.git/blobdiff - test/view/ruler.cpp
tests: Fix a Boost header deprecation warning.
[pulseview.git] / test / view / ruler.cpp
index 5cef38d5ce20211c1ca8e329ca8e05f0a62629a1..4a4eac8f34d5822cacec1b622c4fe8c8f9f047bc 100644 (file)
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <boost/version.hpp>
+#if BOOST_VERSION >= 107100 // 1.71 deprecated the old header location.
+#include <boost/test/tools/floating_point_comparison.hpp>
+#else
 #include <boost/test/floating_point_comparison.hpp>
+#endif
 #include <boost/test/unit_test.hpp>
 
 #include "pv/views/trace/ruler.hpp"