mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
common: Add substitute code for libgpg-error < 1.22.
* common/util.h (GPG_ERR_DB_CORRUPTED): New.
This commit is contained in:
parent
d96e76d15f
commit
8b7f64f9df
@ -37,8 +37,10 @@
|
||||
|
||||
/* These error codes are used but not defined in the required
|
||||
libgpg-error version. Define them here. */
|
||||
/* None right now. (Use #if GPG_ERROR_VERSION_NUMBER < 0x011500 / * 1.21) */
|
||||
|
||||
/* Example: (#if GPG_ERROR_VERSION_NUMBER < 0x011500 // 1.21) */
|
||||
#if GPG_ERROR_VERSION_NUMBER < 0x011600 /* 1.22 */
|
||||
# define GPG_ERR_DB_CORRUPTED 218
|
||||
#endif /* gpg_error < 1.22 */
|
||||
|
||||
/* Hash function used with libksba. */
|
||||
#define HASH_FNC ((void (*)(void *, const void*,size_t))gcry_md_write)
|
||||
|
Loading…
x
Reference in New Issue
Block a user