Home GnuPG
Diffusion GnuPG 98f9e14323bf

common: New file fwddecl.h.
98f9e14323bfUnpublished

Unpublished Commit · Learn More

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

Description

common: New file fwddecl.h.

* common/util.h (server_control_s, ctrl_t): Move to ...
* common/fwddecl.h: New file.
* common/call-gpg.h: Replace typedef by fwddecl.h.  Change include
protection macro name.
* common/Makefile.am (common_sources): Add fwddecl.h.

It seems some compilers do not grok a re-declaration. Thus we factor
it out into a separate file and use the include protection macro to
protect against re-declaration.

  • GnuPG-bug-id: T2200
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Dec 21 2015, 11:37 AM
Parents
rGaf142854a735: build: Add required macro for pkg-config
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG98f9e14323bf: common: New file fwddecl.h. (authored by Werner Koch <wk@gnupg.org>).Dec 21 2015, 11:37 AM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:08 PM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:31 PM