mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
af142854a7
commit
98f9e14323
4 changed files with 45 additions and 13 deletions
|
@ -52,6 +52,7 @@
|
|||
#include "../common/dotlock.h"
|
||||
#include "../common/utf8conv.h"
|
||||
#include "../common/dynload.h"
|
||||
#include "../common/fwddecl.h"
|
||||
|
||||
#include "gettime.h"
|
||||
|
||||
|
@ -346,11 +347,4 @@ int _gnupg_isatty (int fd);
|
|||
#define xtoi_2(p) ((xtoi_1(p) * 16) + xtoi_1((p)+1))
|
||||
#define xtoi_4(p) ((xtoi_2(p) * 256) + xtoi_2((p)+2))
|
||||
|
||||
|
||||
/*-- Forward declaration of the commonly used server control structure. */
|
||||
/* (We need it here as it is used by some callback prototypes.) */
|
||||
struct server_control_s;
|
||||
typedef struct server_control_s *ctrl_t;
|
||||
|
||||
|
||||
#endif /*GNUPG_COMMON_UTIL_H*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue