From fb6af46d0e6f608c2753ac055e62ec933802188e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 30 Mar 2006 04:40:52 +0000 Subject: [PATCH] Put all the IMPORTed headers into the headerfile to avoid hidden depencies. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16859 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/gen.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/asn1/gen.c b/lib/asn1/gen.c index f35acc0a4..ca1b725c5 100644 --- a/lib/asn1/gen.c +++ b/lib/asn1/gen.c @@ -62,6 +62,8 @@ add_import (const char *module) tmp->module = module; tmp->next = imports; imports = tmp; + + fprintf (headerfile, "#include <%s_asn1.h>\n", module); } const char * @@ -248,10 +250,6 @@ generate_header_of_codefile(const char *name) "#include \n", orig_filename); - for (i = imports; i != NULL; i = i->next) - fprintf (codefile, - "#include <%s_asn1.h>\n", - i->module); fprintf (codefile, "#include <%s.h>\n", headerbase);