mirror of
git://git.gnupg.org/gnupg.git
synced 2024-10-29 19:48:43 +01:00
common: Allow building with libgpg-error < 1.47
* common/util.h (GPG_ERR_BAD_RESET_CODE): New replacement. (GPG_ERR_NO_RESET_CODE): New. (GPG_ERR_BAD_PUK): New. -- But as least 1.38 is required. Tested with 1.42
This commit is contained in:
parent
bc150995e4
commit
62bd291dcc
@ -39,6 +39,11 @@
|
|||||||
* libgpg-error version. Define them here.
|
* libgpg-error version. Define them here.
|
||||||
* Example: (#if GPG_ERROR_VERSION_NUMBER < 0x011500 // 1.21)
|
* Example: (#if GPG_ERROR_VERSION_NUMBER < 0x011500 // 1.21)
|
||||||
*/
|
*/
|
||||||
|
#if GPG_ERROR_VERSION_NUMBER < 0x012f00 /* 1.47 */
|
||||||
|
#define GPG_ERR_BAD_PUK 320
|
||||||
|
#define GPG_ERR_NO_RESET_CODE 321
|
||||||
|
#define GPG_ERR_BAD_RESET_CODE 322
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EXTERN_UNLESS_MAIN_MODULE
|
#ifndef EXTERN_UNLESS_MAIN_MODULE
|
||||||
# if !defined (INCLUDED_BY_MAIN_MODULE)
|
# if !defined (INCLUDED_BY_MAIN_MODULE)
|
||||||
|
Loading…
Reference in New Issue
Block a user