From 88294023c196497cfa6737be262c8b0c09d2a3ce Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 18 Nov 2020 15:14:56 +0100 Subject: cpp: Use portable off_t size_t * configure.ac: Configure cpp data.h.in * lang/cpp/src/Makefile.am: Generate data.h * lang/cpp/src/data.cpp, lang/cpp/src/data.h: Use portable types. * lang/qt/src/Makefile.am: Include build dir. * lang/qt/tests/makefile.am: Include build dir. -- These kind of patches have been around for a while, IMO this should not create an ABI incompatbility for cases where it already works because the types should be the same so I think this is not an interface break. GnuPG-Bug-Id: T3996 --- lang/cpp/src/data.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lang/cpp/src/data.cpp') diff --git a/lang/cpp/src/data.cpp b/lang/cpp/src/data.cpp index 7a93cbc2..356bbed6 100644 --- a/lang/cpp/src/data.cpp +++ b/lang/cpp/src/data.cpp @@ -217,17 +217,17 @@ GpgME::Error GpgME::Data::setFileName(const char *name) return Error(gpgme_data_set_file_name(d->data, name)); } -ssize_t GpgME::Data::read(void *buffer, size_t length) +gpgme_ssize_t GpgME::Data::read(void *buffer, size_t length) { return gpgme_data_read(d->data, buffer, length); } -ssize_t GpgME::Data::write(const void *buffer, size_t length) +gpgme_ssize_t GpgME::Data::write(const void *buffer, size_t length) { return gpgme_data_write(d->data, buffer, length); } -off_t GpgME::Data::seek(off_t offset, int whence) +gpgme_off_t GpgME::Data::seek(gpgme_off_t offset, int whence) { return gpgme_data_seek(d->data, offset, whence); } -- cgit v1.2.3