aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-03-29 13:06:47 +0000
committerWerner Koch <[email protected]>2018-03-29 13:06:54 +0000
commit60d7a1e8f625ea0db455bff989534dd52f0650c7 (patch)
tree9cac051beb1d28483882159d7c8f0253663ee3c7
parentMerge branch 'ben/howto-update-02' of ssh+git://playfair.gnupg.org/git/gpgme (diff)
downloadgpgme-60d7a1e8f625ea0db455bff989534dd52f0650c7.tar.gz
gpgme-60d7a1e8f625ea0db455bff989534dd52f0650c7.zip
json: Build only a dummy if libgpg-error is < 1.28
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--src/gpgme-json.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpgme-json.c b/src/gpgme-json.c
index 5f16daf6..b54d9a8a 100644
--- a/src/gpgme-json.c
+++ b/src/gpgme-json.c
@@ -41,6 +41,10 @@
#include "cJSON.h"
+#if GPGRT_VERSION_NUMBER < 0x011c00 /* 1.28 */
+int main (void){fputs ("Build with Libgpg-error >= 1.28!\n", stderr);return 1;}
+#else /* libgpg-error >= 1.28 */
+
/* We don't allow a request with more than 64 MiB. */
#define MAX_REQUEST_SIZE (64 * 1024 * 1024)
@@ -1369,3 +1373,4 @@ main (int argc, char *argv[])
#endif /* This is a modern libgp-error. */
return 0;
}
+#endif /* libgpg-error >= 1.28 */