diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-03-11 08:47:21 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-03-11 09:42:16 +0100 |
commit | 220d1ab8ffe3c3bbec99c6143a9f480df4955e5b (patch) | |
tree | 042de383050ae621b72772982fd27fb151324c0c /ffi/lang | |
parent | 930d8b9b87384a0115d292434fbe831278151a76 (diff) |
openpgp-ffi: Move all type declarations to <sequoia/openpgp/types.h>
- pgp_key_t was declared multiple times, once in <sequoia/openpgp.h>
and again in <sequoia/openpgp/crypto.h>. Although the definitions
were the same, this causes gcc to emit a warning, which is
particularly annoying when combined with -Werror.
- It's hard to remove one of the declarations as this would create a
circular dependency.
- To break this circular dependency, we move all of the type
declarations to a separate header file.
Diffstat (limited to 'ffi/lang')
-rw-r--r-- | ffi/lang/python/sequoia/sequoia_build.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ffi/lang/python/sequoia/sequoia_build.py b/ffi/lang/python/sequoia/sequoia_build.py index 7345097b..9fe6343a 100644 --- a/ffi/lang/python/sequoia/sequoia_build.py +++ b/ffi/lang/python/sequoia/sequoia_build.py @@ -8,6 +8,7 @@ pgp_inc = join(dirname(__file__), '../../../../openpgp-ffi/include/sequoia') defs = "".join(l for l in chain(open(join(pgp_inc, "openpgp/error.h")).readlines(), open(join(pgp_inc, "io.h")).readlines(), + open(join(pgp_inc, "openpgp/types.h")).readlines(), open(join(pgp_inc, "openpgp/crypto.h")).readlines(), open(join(pgp_inc, "openpgp.h")).readlines(), open(join(sq_inc, "core.h")).readlines(), |