Add simpleclock as fallback when hhdate is not available

ref https://github.com/Alexays/Waybar/issues/668
This commit is contained in:
Laurent Arnoud
2020-10-10 14:09:55 +02:00
parent 9fa2cc45d2
commit 96d965fe04
4 changed files with 73 additions and 2 deletions

View File

@ -1,7 +1,11 @@
#pragma once
#include <json/json.h>
#ifdef HAVE_LIBDATE
#include "modules/clock.hpp"
#else
#include "modules/simpleclock.hpp"
#endif
#ifdef HAVE_SWAY
#include "modules/sway/mode.hpp"
#include "modules/sway/window.hpp"