[Gnucash-changes] Fix warning about deprecated aqbanking function
in aqbanking-1.0.7
Christian Stimming
cstim at cvs.gnucash.org
Sat Apr 2 04:24:48 EST 2005
Log Message:
-----------
Fix warning about deprecated aqbanking function in aqbanking-1.0.7
2005-04-02 Christian Stimming <stimming at tuhh.de>
* src/import-export/hbci/dialog-hbcitrans.c: Fix warning about
deprecated aqbanking function in aqbanking-1.0.7
Tags:
----
gnucash-1-8-branch
Modified Files:
--------------
gnucash:
ChangeLog
gnucash/src/import-export/hbci:
dialog-hbcitrans.c
Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1461.2.406
retrieving revision 1.1461.2.407
diff -LChangeLog -LChangeLog -u -r1.1461.2.406 -r1.1461.2.407
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,8 @@
+2005-04-02 Christian Stimming <stimming at tuhh.de>
+
+ * src/import-export/hbci/dialog-hbcitrans.c: Fix warning about
+ deprecated aqbanking function in aqbanking-1.0.7
+
2005-03-20 Christian Stimming <stimming at tuhh.de>
* src/import-export/hbci/gnc-hbci-utils.c: Retrieve the current
Index: dialog-hbcitrans.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/hbci/dialog-hbcitrans.c,v
retrieving revision 1.9.2.20
retrieving revision 1.9.2.21
diff -Lsrc/import-export/hbci/dialog-hbcitrans.c -Lsrc/import-export/hbci/dialog-hbcitrans.c -u -r1.9.2.20 -r1.9.2.21
--- src/import-export/hbci/dialog-hbcitrans.c
+++ src/import-export/hbci/dialog-hbcitrans.c
@@ -27,6 +27,7 @@
#endif
#include <gnome.h>
+#include <aqbanking/version.h>
#include <aqbanking/account.h>
#include <aqbanking/jobsingletransfer.h>
#include <aqbanking/jobsingledebitnote.h>
@@ -440,7 +441,16 @@
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);
}
More information about the gnucash-changes
mailing list