aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-27 07:25:01 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-27 07:25:01 +0200
commit00cb60a120a4ddaa00cd8b2852b8d88e0a999261 (patch)
tree02b47849eded21d3e690f4da5adc22b53150f2b6
parentebeb2901db403160d32598a3ff37fb8e3fe16f0d (diff)
parentfa31e7f6ca3fa09c96f479af7364eb69b8a69673 (diff)
downloadayatana-indicator-datetime-00cb60a120a4ddaa00cd8b2852b8d88e0a999261.tar.gz
ayatana-indicator-datetime-00cb60a120a4ddaa00cd8b2852b8d88e0a999261.tar.bz2
ayatana-indicator-datetime-00cb60a120a4ddaa00cd8b2852b8d88e0a999261.zip
Merge branch 'tari01-pr/fix-libaccounts-glib-include-warning'
Attributes GH PR #39: https://github.com/AyatanaIndicators/ayatana-indicator-datetime/pull/39
-rw-r--r--src/myself.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/myself.cpp b/src/myself.cpp
index ca0c5e9..9c02054 100644
--- a/src/myself.cpp
+++ b/src/myself.cpp
@@ -18,7 +18,13 @@
*/
#include "datetime/myself.h"
-#include <libaccounts-glib/accounts-glib.h>
+
+#if GLIB_CHECK_VERSION(2, 66, 0)
+ #include <libaccounts-glib.h>
+#else
+ #include <libaccounts-glib/accounts-glib.h>
+#endif
+
#include <algorithm>
namespace ayatana {