From e99356306d7bda61802530ebeb07d9ba73c4dec0 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 25 Apr 2013 12:00:16 +0100 Subject: [PATCH] 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. --- src/gpgme.h.in | 3 +-- 1 file changed, 1 insertion(+), 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 #include -@INSERT__TYPEDEFS_FOR_GPGME_H@ - #include #ifdef __cplusplus @@ -45,6 +43,7 @@ extern "C" { #endif #endif /* __cplusplus */ +@INSERT__TYPEDEFS_FOR_GPGME_H@ /* Check for compiler features. */