]> sigrok.org Git - libsigrok.git/commitdiff
bindings/cxx: Include missing header file
authorJuan M. Bello-Rivas <redacted>
Mon, 30 Mar 2020 02:27:24 +0000 (19:27 -0700)
committerUwe Hermann <redacted>
Sat, 4 Apr 2020 20:24:21 +0000 (22:24 +0200)
Including the `functional` header is necessary in order to use `std::function` in the definition of `LogCallbackFunction` when compiling with gcc 7.3.0.

bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp

index 7467d6cf38af8e34e83d4500fef9fdbfd6380891..97e54e1731a88d1da3eb597c9d1c49cb20bd7750 100644 (file)
@@ -78,6 +78,7 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 #include <glibmm.h>
 G_GNUC_END_IGNORE_DEPRECATIONS
 
+#include <functional>
 #include <stdexcept>
 #include <memory>
 #include <vector>