]> sigrok.org Git - pulseview.git/commit
MinGW: Fix a compile error due to a missing #include.
authorUwe Hermann <redacted>
Sat, 10 Feb 2018 21:01:26 +0000 (22:01 +0100)
committerUwe Hermann <redacted>
Sat, 10 Feb 2018 21:10:10 +0000 (22:10 +0100)
commit7671200bd71de8cdd922b41b025ea18de6422345
treeffac4cbd00e57a8d6007853fa1216a533a1221d8
parent57c04e781e96020c7185d7b6e634629007497227
MinGW: Fix a compile error due to a missing #include.

  In file included from [...]/pv/globalsettings.cpp:20:0:
  [...]/pv/globalsettings.hpp:31:12: error: 'std::function' has not been declared
   using std::function;
              ^
  test/CMakeFiles/pulseview-test.dir/build.make:88: recipe for target 'test/CMakeFiles/pulseview-test.dir/__/pv/globalsettings.cpp.obj' failed
  make[2]: *** [test/CMakeFiles/pulseview-test.dir/__/pv/globalsettings.cpp.obj] Error 1
  make[2]: *** Waiting for unfinished jobs....
  [  5%] Building CXX object CMakeFiles/pulseview.dir/pv/globalsettings.cpp.obj
  In file included from [...]/pv/globalsettings.cpp:20:0:
  [...]/pv/globalsettings.hpp:31:12: error: 'std::function' has not been declared
   using std::function;
              ^

Add #include <functional> everywhere where std::function is used. Only
the occurence in globalsettings.hpp was causing an actual build failure
on MinGW, though.
pv/binding/device.hpp
pv/globalsettings.hpp
pv/session.hpp