blob: 44183ae997afb8ec19148fec498a11d67b5ae8bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- ./cpp/src/Freeze/MapI.cpp
+++ ./cpp/src/Freeze/MapI.cpp
@@ -1487,10 +1487,10 @@ Freeze::MapHelperI::size() const
try
{
-#if DB_VERSION_MAJOR != 4
-#error Freeze requires DB 4.x
+#if DB_VERSION_MAJOR < 4
+#error Freeze requires DB 4.x or greater
#endif
-#if DB_VERSION_MINOR < 3
+#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 3
_db->stat(&s, 0);
#else
_db->stat(_connection->dbTxn(), &s, 0);
|