diff options
author | Andre Heinecke <[email protected]> | 2020-11-18 14:14:56 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2020-11-18 14:14:56 +0000 |
commit | 88294023c196497cfa6737be262c8b0c09d2a3ce (patch) | |
tree | f823f2f90ead3c7dca7dbe21dfdd3f5f8d8c537c /lang/cpp/src/data.cpp | |
parent | qt: Avoid empty "[email protected]" signature notations (diff) | |
download | gpgme-88294023c196497cfa6737be262c8b0c09d2a3ce.tar.gz gpgme-88294023c196497cfa6737be262c8b0c09d2a3ce.zip |
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
Diffstat (limited to 'lang/cpp/src/data.cpp')
-rw-r--r-- | lang/cpp/src/data.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |