From 937b2b1744052104f243953f58809aabcd8a0770 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 10 Nov 2009 20:55:29 +0100 Subject: [PATCH] sticker: added fallback for sqlite3_prepare_v2() This function was not present in SQLite < 3.4. --- NEWS | 1 + src/sticker.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index 2c76c6b93..3c6fc4141 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ ver 0.15.6 (2009/??/??) * output_thread: check again if output is open on PAUSE * update: delete ignored symlinks from database * database: increased maximum line length to 32 kB +* sticker: added fallback for sqlite3_prepare_v2() ver 0.15.5 (2009/10/18) diff --git a/src/sticker.c b/src/sticker.c index 0d30fbb70..cded09fca 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; };