diff --git a/ChangeLog b/ChangeLog index aef00f0d78..f32be2700c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-04-02 Christian Stimming + + * src/import-export/hbci/dialog-hbcitrans.c: Fix warning about + deprecated aqbanking function in aqbanking-1.0.7 + 2005-03-20 Christian Stimming * src/import-export/hbci/gnc-hbci-utils.c: Retrieve the current diff --git a/src/import-export/hbci/dialog-hbcitrans.c b/src/import-export/hbci/dialog-hbcitrans.c index a3a87ddc56..a72cc9677c 100644 --- a/src/import-export/hbci/dialog-hbcitrans.c +++ b/src/import-export/hbci/dialog-hbcitrans.c @@ -27,6 +27,7 @@ #endif #include +#include #include #include #include @@ -440,7 +441,16 @@ int gnc_hbci_dialog_run_until_ok(HBCITransDialog *td, printf("gnc_hbci_trans_dialog_enqueue: Oops, job not available. Aborting.\n"); return -1; } +#if ((AQBANKING_VERSION_MAJOR > 1) || \ + ((AQBANKING_VERSION_MAJOR == 1) && \ + ((AQBANKING_VERSION_MINOR > 0) || \ + ((AQBANKING_VERSION_MINOR == 0) && \ + (AQBANKING_VERSION_PATCHLEVEL > 6))))) + max_purpose_lines = AB_TransactionLimits_GetMaxLinesPurpose + ( AB_JobSingleTransfer_GetFieldLimits(job) ); +#else max_purpose_lines = AB_JobSingleTransfer_GetMaxPurposeLines(job); +#endif /* these are the number of fields, 27 characters each. */ AB_Job_free(job); }