common: New file fwddecl.h.
authorWerner Koch <wk@gnupg.org>
Mon, 21 Dec 2015 10:37:21 +0000 (11:37 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 21 Dec 2015 10:37:21 +0000 (11:37 +0100)
commit98f9e14323bf806f674b3cc259e19ef6219b4378
tree620a0731491d8ebbb6f3c46aa12afed8aa99658b
parentaf142854a73567836a0ca44ad62900469c23d531
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: 2200
Signed-off-by: Werner Koch <wk@gnupg.org>
common/Makefile.am
common/call-gpg.h
common/fwddecl.h [new file with mode: 0644]
common/util.h