Home GnuPG

Make gpg-error replacement defines more robust.
6540b84a6e91Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Make gpg-error replacement defines more robust.

* configure.ac (AH_BOTTOM): Move GPG_ERR_ replacement defines to ...
* src/gcrypt-int.h: new file.
* src/visibility.h, src/cipher.h: Replace gcrypt.h by gcrypt-int.h.
* tests/: Ditto for all test files.

Defining newer gpg-error codes in config.h was not a good idea,
because config.h is usually included before gpg-error.h and thus
gpg-error.h would be double defines to lead to faulty code there like

typedef enum
  {
    [...]
    191 = 191,
    [...]
  };

Details

Provenance
wernerAuthored on Jun 26 2013, 11:09 AM
Parents
rC3544fa8aa63b: Check if assembler is compatible with AMD64 assembly implementations
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC6540b84a6e91: Make gpg-error replacement defines more robust. (authored by Werner Koch <wk@gnupg.org>).Jun 26 2013, 11:11 AM