From 79eedca66f9c256934eee75c7fbafe862efb2175 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 25 Aug 2011 19:11:07 +0000 Subject: [PATCH] sqlite: warn at compile time if you've got an ancient version of sqlite so users have a clue as to why maps may not be blazingly fast on 'stable' systems --- plugins/input/sqlite/sqlite_types.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/input/sqlite/sqlite_types.hpp b/plugins/input/sqlite/sqlite_types.hpp index 1d3574557..ffa9daadf 100644 --- a/plugins/input/sqlite/sqlite_types.hpp +++ b/plugins/input/sqlite/sqlite_types.hpp @@ -136,6 +136,7 @@ public: sqlite3_enable_shared_cache(1); if (sqlite3_open_v2 (file.c_str(), &db_, SQLITE_OPEN_NOMUTEX|SQLITE_OPEN_SHAREDCACHE, 0)) #else + #warning "Mapnik's sqlite plugin is compiling against an old version of sqlite that does no support sqlite3_open_v2 which may make rendering slow..." if (sqlite3_open (file.c_str(), &db_)) #endif {