aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-04-25 11:00:16 +0000
committerWerner Koch <[email protected]>2013-05-18 11:49:52 +0000
commite99356306d7bda61802530ebeb07d9ba73c4dec0 (patch)
tree52e45258ff585bea638a35fdbacce9a9d4e93db5
parentMake definition of off_t robust against misbehaving w32 toolchains. (diff)
downloadgpgme-e99356306d7bda61802530ebeb07d9ba73c4dec0.tar.gz
gpgme-e99356306d7bda61802530ebeb07d9ba73c4dec0.zip
Improve C++ compatibility of previous patch.
* src/gpgme.h.in: Move gpgme_sssize_t and gpgme_off_t typedefs into the extern "C" scope. -- Frankly, this does not help very much because g++ still does not interpret gpgme_data_seek_cb_t as compatible with the C++ ssize_t. I am sorry for that API change but C and C++ are too different to always get both of them under one umbrella. However, the ABI should now be identical to older gpgme versions.
-rw-r--r--src/gpgme.h.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index caf64d4c..4186a999 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -34,8 +34,6 @@
/* Include stdio.h for the FILE type definition. */
#include <stdio.h>
#include <time.h>
-@INSERT__TYPEDEFS_FOR_GPGME_H@
-
#include <gpg-error.h>
#ifdef __cplusplus
@@ -45,6 +43,7 @@ extern "C" {
#endif
#endif /* __cplusplus */
+@INSERT__TYPEDEFS_FOR_GPGME_H@
/* Check for compiler features. */