Commit 1c834965 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Fix build when using pre 3.7.15 version of sqlite

parent 584e4153
......@@ -110,8 +110,13 @@ class SqliteTools
} while ( res == SQLITE_ROW );
if ( res != SQLITE_DONE )
{
std::cerr << "Invalid result: " << sqlite3_errstr( res ) << ": " <<
sqlite3_errmsg( dbConnection ) << std::endl;
std::cerr << "Invalid result: " <<
#if SQLITE_VERSION_NUMBER >= 3007015
sqlite3_errstr( res )
#else
res
#endif
<< ": " << sqlite3_errmsg( dbConnection ) << std::endl;
return false;
}
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment