From 151e92a20374d9259d8a0686916293749740ed88 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 17 Jan 2012 16:43:20 +0200 Subject: Rewrite size() function to not rely in DATABSE_* macros in header Those are not defined for some tests (e.g., database-specific tests built with VC++ project). --- libcommon/common/common.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libcommon/common/common.cxx') diff --git a/libcommon/common/common.cxx b/libcommon/common/common.cxx index 66a629f..8be7631 100644 --- a/libcommon/common/common.cxx +++ b/libcommon/common/common.cxx @@ -141,3 +141,15 @@ create_database (int& argc, return db; } + +bool +size_available () +{ +#if defined(DATABASE_SQLITE) || \ + defined(DATABASE_ORACLE) || \ + defined(DATABASE_MSSQL) + return false; +#else + return true; +#endif +} -- cgit v1.1