diff options
author | Robert Tari <robert@tari.in> | 2021-06-18 00:49:57 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-06-26 11:17:00 +0200 |
commit | fa31e7f6ca3fa09c96f479af7364eb69b8a69673 (patch) | |
tree | 02b47849eded21d3e690f4da5adc22b53150f2b6 | |
parent | ebeb2901db403160d32598a3ff37fb8e3fe16f0d (diff) | |
download | ayatana-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.cpp | 8 |
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 { |