aboutsummaryrefslogtreecommitdiff
path: root/src/sticker.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-10 20:55:29 +0100
committerMax Kellermann <max@duempel.org>2009-11-10 20:55:29 +0100
commit937b2b1744052104f243953f58809aabcd8a0770 (patch)
treebb2d81499d292e39ff31f0731cccfa9a93f27b39 /src/sticker.c
parent8c0680f6b986f7b4637139689d513e4d13c1af47 (diff)
sticker: added fallback for sqlite3_prepare_v2()
This function was not present in SQLite < 3.4.
Diffstat (limited to 'src/sticker.c')
-rw-r--r--src/sticker.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sticker.c b/src/sticker.c
index 0d30fbb7..cded09fc 100644
--- a/src/sticker.c
+++ b/src/sticker.c
@@ -27,6 +27,10 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "sticker"
+#if SQLITE_VERSION_NUMBER < 3003009
+#define sqlite3_prepare_v2 sqlite3_prepare
+#endif
+
struct sticker {
GHashTable *table;
};