summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-01-24 18:39:26 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-01-26 16:38:31 +0100
commitd10276253fb9258412d5b23caa54b34c5cde24d1 (patch)
treed5c14cf370b1939ee6b2ed4bbfa7e712efc42a1d /src
parentPort CI to hunter (diff)
downloadnheko-d10276253fb9258412d5b23caa54b34c5cde24d1.tar.xz
Fix include of lmdb++ with hunter
Diffstat (limited to 'src')
-rw-r--r--src/Cache.h4
-rw-r--r--src/Cache_p.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/Cache.h b/src/Cache.h

index da4e2040..a8991eb5 100644 --- a/src/Cache.h +++ b/src/Cache.h
@@ -22,7 +22,11 @@ #include <QImage> #include <QString> +#if __has_include(<lmdbxx/lmdb++.h>) +#include <lmdbxx/lmdb++.h> +#else #include <lmdb++.h> +#endif #include <mtx/responses.hpp> diff --git a/src/Cache_p.h b/src/Cache_p.h
index 47dd945a..32f2a67d 100644 --- a/src/Cache_p.h +++ b/src/Cache_p.h
@@ -26,7 +26,11 @@ #include <QImage> #include <QString> +#if __has_include(<lmdbxx/lmdb++.h>) +#include <lmdbxx/lmdb++.h> +#else #include <lmdb++.h> +#endif #include <nlohmann/json.hpp> #include <mtx/responses.hpp>