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

This commit is contained in:
Dane Springmeyer 2011-08-25 19:11:07 +00:00
parent 4a0ed78cb7
commit 79eedca66f

View File

@ -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
{