@@ -1969,6 +1969,7 @@ DB_set_bt_minkey(DBObject* self, PyObject* args)
1969
1969
RETURN_NONE ();
1970
1970
}
1971
1971
1972
+ #if (DBVER >= 33 )
1972
1973
static int
1973
1974
_default_cmp (const DBT * leftKey ,
1974
1975
const DBT * rightKey )
@@ -2120,6 +2121,7 @@ DB_set_bt_compare (DBObject* self, PyObject* args)
2120
2121
RETURN_IF_ERR ();
2121
2122
RETURN_NONE ();
2122
2123
}
2124
+ #endif /* DBVER >= 33 */
2123
2125
2124
2126
2125
2127
static PyObject *
@@ -3956,6 +3958,7 @@ DBEnv_set_lg_max(DBEnvObject* self, PyObject* args)
3956
3958
}
3957
3959
3958
3960
3961
+ #if (DBVER >= 33 )
3959
3962
static PyObject *
3960
3963
DBEnv_set_lg_regionmax (DBEnvObject * self , PyObject * args )
3961
3964
{
@@ -3971,6 +3974,7 @@ DBEnv_set_lg_regionmax(DBEnvObject* self, PyObject* args)
3971
3974
RETURN_IF_ERR ();
3972
3975
RETURN_NONE ();
3973
3976
}
3977
+ #endif
3974
3978
3975
3979
3976
3980
static PyObject *
@@ -4593,7 +4597,9 @@ static PyMethodDef DB_methods[] = {
4593
4597
{"remove" , (PyCFunction )DB_remove , METH_VARARGS |METH_KEYWORDS },
4594
4598
{"rename" , (PyCFunction )DB_rename , METH_VARARGS },
4595
4599
{"set_bt_minkey" , (PyCFunction )DB_set_bt_minkey , METH_VARARGS },
4600
+ #if (DBVER >= 33 )
4596
4601
{"set_bt_compare" , (PyCFunction )DB_set_bt_compare , METH_VARARGS },
4602
+ #endif
4597
4603
{"set_cachesize" , (PyCFunction )DB_set_cachesize , METH_VARARGS },
4598
4604
#if (DBVER >= 41 )
4599
4605
{"set_encrypt" , (PyCFunction )DB_set_encrypt , METH_VARARGS |METH_KEYWORDS },
@@ -4683,7 +4689,9 @@ static PyMethodDef DBEnv_methods[] = {
4683
4689
{"set_lg_bsize" , (PyCFunction )DBEnv_set_lg_bsize , METH_VARARGS },
4684
4690
{"set_lg_dir" , (PyCFunction )DBEnv_set_lg_dir , METH_VARARGS },
4685
4691
{"set_lg_max" , (PyCFunction )DBEnv_set_lg_max , METH_VARARGS },
4692
+ #if (DBVER >= 33 )
4686
4693
{"set_lg_regionmax" ,(PyCFunction )DBEnv_set_lg_regionmax , METH_VARARGS },
4694
+ #endif
4687
4695
{"set_lk_detect" , (PyCFunction )DBEnv_set_lk_detect , METH_VARARGS },
4688
4696
{"set_lk_max" , (PyCFunction )DBEnv_set_lk_max , METH_VARARGS },
4689
4697
#if (DBVER >= 32 )
0 commit comments