summaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-10-24 15:17:53 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-10-24 15:17:53 +0200
commit74c73799ab83ac1569ddee7a3dddb12df3bc8a6d (patch)
tree126cba6e54dd1c0a70cbc18096658afea693a131 /src/database
parentbf30b4498fc919ecd10d98b4ac551dca227c9ed5 (diff)
downloadbiboumi-74c73799ab83ac1569ddee7a3dddb12df3bc8a6d.tar.gz
biboumi-74c73799ab83ac1569ddee7a3dddb12df3bc8a6d.tar.bz2
biboumi-74c73799ab83ac1569ddee7a3dddb12df3bc8a6d.tar.xz
biboumi-74c73799ab83ac1569ddee7a3dddb12df3bc8a6d.zip
Only compile database.cpp if configured with litesql
Diffstat (limited to 'src/database')
-rw-r--r--src/database/database.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/database/database.cpp b/src/database/database.cpp
index e16465c..8d09788 100644
--- a/src/database/database.cpp
+++ b/src/database/database.cpp
@@ -1,3 +1,6 @@
+#include "biboumi.h"
+#ifdef USE_DATABASE
+
#include <database/database.hpp>
#include <config/config.hpp>
#include <utils/xdg.hpp>
@@ -52,3 +55,5 @@ void Database::close()
{
Database::db.reset(nullptr);
}
+
+#endif