@@ -1448,6 +1448,7 @@ DB_get(DBObject* self, PyObject* args, PyObject* kwargs)
14481448 return retval ;
14491449}
14501450
1451+ #if (DBVER >= 33 )
14511452static PyObject *
14521453DB_pget (DBObject * self , PyObject * args , PyObject * kwargs )
14531454{
@@ -1535,6 +1536,7 @@ DB_pget(DBObject* self, PyObject* args, PyObject* kwargs)
15351536 RETURN_IF_ERR ();
15361537 return retval ;
15371538}
1539+ #endif
15381540
15391541
15401542/* Return size of entry */
@@ -2918,6 +2920,7 @@ DBC_get(DBCursorObject* self, PyObject* args, PyObject *kwargs)
29182920 return retval ;
29192921}
29202922
2923+ #if (DBVER >= 33 )
29212924static PyObject *
29222925DBC_pget (DBCursorObject * self , PyObject * args , PyObject * kwargs )
29232926{
@@ -3017,6 +3020,7 @@ DBC_pget(DBCursorObject* self, PyObject* args, PyObject *kwargs)
30173020 }
30183021 return retval ;
30193022}
3023+ #endif
30203024
30213025
30223026static PyObject *
@@ -4379,7 +4383,9 @@ static PyMethodDef DB_methods[] = {
43794383 {"delete" , (PyCFunction )DB_delete , METH_VARARGS |METH_KEYWORDS },
43804384 {"fd" , (PyCFunction )DB_fd , METH_VARARGS },
43814385 {"get" , (PyCFunction )DB_get , METH_VARARGS |METH_KEYWORDS },
4386+ #if (DBVER >= 33 )
43824387 {"pget" , (PyCFunction )DB_pget , METH_VARARGS |METH_KEYWORDS },
4388+ #endif
43834389 {"get_both" , (PyCFunction )DB_get_both , METH_VARARGS |METH_KEYWORDS },
43844390 {"get_byteswapped" , (PyCFunction )DB_get_byteswapped ,METH_VARARGS },
43854391 {"get_size" , (PyCFunction )DB_get_size , METH_VARARGS |METH_KEYWORDS },
@@ -4439,7 +4445,9 @@ static PyMethodDef DBCursor_methods[] = {
44394445 {"dup" , (PyCFunction )DBC_dup , METH_VARARGS },
44404446 {"first" , (PyCFunction )DBC_first , METH_VARARGS |METH_KEYWORDS },
44414447 {"get" , (PyCFunction )DBC_get , METH_VARARGS |METH_KEYWORDS },
4448+ #if (DBVER >= 33 )
44424449 {"pget" , (PyCFunction )DBC_pget , METH_VARARGS |METH_KEYWORDS },
4450+ #endif
44434451 {"get_recno" , (PyCFunction )DBC_get_recno , METH_VARARGS },
44444452 {"last" , (PyCFunction )DBC_last , METH_VARARGS |METH_KEYWORDS },
44454453 {"next" , (PyCFunction )DBC_next , METH_VARARGS |METH_KEYWORDS },
0 commit comments