core: fix libc++ compatibility (#75)

src/config/ConfigManager.cpp:91:6: error: no type named 'mutex' in namespace 'std'
   91 | std::mutex   configMtx;
      | ~~~~~^
src/config/ConfigManager.cpp:94:10: error: no member named 'lock_guard' in namespace 'std'
   94 |     std::lock_guard<std::mutex> lg(configMtx);
      |     ~~~~~^
/var/tmp/portage/gui-apps/hyprlock-9999/work/hyprlock-9999/src/config/ConfigManager.cpp:94:26: error: no member named 'mutex' in namespace 'std'
   94 |     std::lock_guard<std::mutex> lg(configMtx);
      |                     ~~~~~^

Closes: https://github.com/hyprwm/hyprlock/issues/43

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
Gonçalo Negrier Duarte 2024-02-24 02:54:15 +00:00 committed by GitHub
parent 8969351cba
commit 57e8000660
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,6 +3,7 @@
#include <filesystem>
#include <glob.h>
#include <cstring>
#include <mutex>
static Hyprlang::CParseResult handleSource(const char* c, const char* v) {
const std::string VALUE = v;
@ -211,4 +212,4 @@ std::optional<std::string> CConfigManager::handleSource(const std::string& comma
}
return {};
}
}