aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-06-18 00:49:57 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-26 11:17:00 +0200
commitfa31e7f6ca3fa09c96f479af7364eb69b8a69673 (patch)
tree02b47849eded21d3e690f4da5adc22b53150f2b6
parentebeb2901db403160d32598a3ff37fb8e3fe16f0d (diff)
downloadayatana-indicator-datetime-fa31e7f6ca3fa09c96f479af7364eb69b8a69673.tar.gz
ayatana-indicator-datetime-fa31e7f6ca3fa09c96f479af7364eb69b8a69673.tar.bz2
ayatana-indicator-datetime-fa31e7f6ca3fa09c96f479af7364eb69b8a69673.zip
src/myself.cpp: Fix libaccounts-glib.h include warning
fixes https://github.com/AyatanaIndicators/ayatana-indicator-datetime/issues/12
-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 {