From 1dc557456eb7418b6d97af36274a2575df64915b Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Fri, 9 Aug 2019 09:05:34 +0000 Subject: [PATCH] Add missing includes for libc++ In file included from ../src/modules/custom.cpp:1: In file included from ../include/modules/custom.hpp:7: ../include/util/command.hpp:15:25: error: implicit instantiation of undefined template 'std::__1::array' std::array buffer = {0}; ^ ../src/modules/pulseaudio.cpp:175:41: error: implicit instantiation of undefined template 'std::__1::array, 9>' static const std::array ports = { ^ /usr/include/c++/v1/__tuple:223:64: note: template is declared here template struct _LIBCPP_TEMPLATE_VIS array; ^ In file included from ../src/factory.cpp:1: In file included from ../include/factory.hpp:8: ../include/modules/sway/workspaces.hpp:39:8: error: no template named 'unordered_map' in namespace 'std' std::unordered_map buttons_; ~~~~~^ ../src/factory.cpp:20:14: error: cannot initialize return object of type 'waybar::AModule *' with an rvalue of type 'waybar::modules::sway::Workspaces *' return new waybar::modules::sway::Workspaces(id, bar_, config_[name]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- include/modules/pulseaudio.hpp | 1 + include/modules/sway/workspaces.hpp | 1 + include/util/command.hpp | 1 + 3 files changed, 3 insertions(+) diff --git a/include/modules/pulseaudio.hpp b/include/modules/pulseaudio.hpp index 541747c2..5f17620a 100644 --- a/include/modules/pulseaudio.hpp +++ b/include/modules/pulseaudio.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include "ALabel.hpp" namespace waybar::modules { diff --git a/include/modules/sway/workspaces.hpp b/include/modules/sway/workspaces.hpp index fef24bf9..5454b9e3 100644 --- a/include/modules/sway/workspaces.hpp +++ b/include/modules/sway/workspaces.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include "AModule.hpp" #include "bar.hpp" #include "client.hpp" diff --git a/include/util/command.hpp b/include/util/command.hpp index f3dd4e1a..62feec78 100644 --- a/include/util/command.hpp +++ b/include/util/command.hpp @@ -3,6 +3,7 @@ #include #include #include +#include namespace waybar::util::command {