From: Paul Kasemir Date: Tue, 30 Aug 2022 18:32:49 +0000 (-0600) Subject: Segment: Include so we don't get error at compile time X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2802b9ec97992323dc797c1b2cd5f9213e3d6932;p=pulseview.git Segment: Include so we don't get error at compile time Example build failure: In file included from /home/paul/sigrok-util/cross-compile/mingw/build_release_64/pulseview/pv/data/segment.cpp:21: /home/paul/sigrok-util/cross-compile/mingw/build_release_64/pulseview/pv/data/segment.hpp:130:14: error: 'shared_ptr' in namespace 'std' does not name a template type 130 | typedef std::shared_ptr SharedPtrToSegment; | ^~~~~~~~~~ /home/paul/sigrok-util/cross-compile/mingw/build_release_64/pulseview/pv/data/segment.hpp:32:1: note: 'std::shared_ptr' is defined in header ''; did you forget to '#include '? 31 | #include +++ |+#include 32 | --- diff --git a/pv/data/segment.hpp b/pv/data/segment.hpp index 66085faf..f4601d04 100644 --- a/pv/data/segment.hpp +++ b/pv/data/segment.hpp @@ -24,6 +24,7 @@ #include "pv/util.hpp" #include +#include #include #include #include