diff options
author | Werner Koch <[email protected]> | 2015-12-21 10:37:21 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-12-21 10:37:21 +0000 |
commit | 98f9e14323bf806f674b3cc259e19ef6219b4378 (patch) | |
tree | 620a0731491d8ebbb6f3c46aa12afed8aa99658b /common/fwddecl.h | |
parent | build: Add required macro for pkg-config (diff) | |
download | gnupg-98f9e14323bf806f674b3cc259e19ef6219b4378.tar.gz gnupg-98f9e14323bf806f674b3cc259e19ef6219b4378.zip |
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 <[email protected]>
Diffstat (limited to 'common/fwddecl.h')
-rw-r--r-- | common/fwddecl.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/common/fwddecl.h b/common/fwddecl.h new file mode 100644 index 000000000..92f045389 --- /dev/null +++ b/common/fwddecl.h @@ -0,0 +1,39 @@ +/* fwddecl.h - Formward declarations + * Copyright (C) 2015 Werner Koch + * + * This file is part of GnuPG. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of either + * + * - the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 3 of the License, or (at + * your option) any later version. + * + * or + * + * - the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * or both in parallel, as here. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef GNUPG_COMMON_FWDDECL_H +#define GNUPG_COMMON_FWDDECL_H + + +/*-- Forward declaration of the commonly used server control structure. */ +struct server_control_s; +typedef struct server_control_s *ctrl_t; + + +#endif /*GNUPG_COMMON_FWDDECL_H*/ |