aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-02-19 04:26:37 +0000
committerLev Walkin <vlm@lionet.info>2006-02-19 04:26:37 +0000
commitae5540f5ea9f625b91f2d545091bbd7aed66d8be (patch)
treea04a6b8e5fd23d24f12e5bccceb7d7c4899eddae
parentfc6a349faffb013baeb0aa0ca4124844dfd65f9f (diff)
includes are outside of extern C {} clause
-rw-r--r--libasn1compiler/asn1c_save.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libasn1compiler/asn1c_save.c b/libasn1compiler/asn1c_save.c
index dca0cf1b..d1876eed 100644
--- a/libasn1compiler/asn1c_save.c
+++ b/libasn1compiler/asn1c_save.c
@@ -249,18 +249,17 @@ asn1c_save_streams(arg_t *arg, asn1c_fdeps_t *deps) {
SAVE_STREAM(fp_h, OT_INCLUDES, "Including external dependencies", 1);
fprintf(fp_h, "\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n");
-
SAVE_STREAM(fp_h, OT_DEPS, "Dependencies", 0);
SAVE_STREAM(fp_h, OT_FWD_DECLS, "Forward declarations", 0);
SAVE_STREAM(fp_h, OT_TYPE_DECLS, expr->Identifier, 0);
SAVE_STREAM(fp_h, OT_FUNC_DECLS,"Implementation", 0);
- if(!(arg->flags & A1C_NO_INCLUDE_DEPS))
- SAVE_STREAM(fp_h, OT_POST_INCLUDE, "Referred external types", 1);
-
fprintf(fp_h, "\n#ifdef __cplusplus\n}\n#endif\n\n"
"#endif\t/* _%s_H_ */\n",
header_id);
+ if(!(arg->flags & A1C_NO_INCLUDE_DEPS))
+ SAVE_STREAM(fp_h, OT_POST_INCLUDE, "Referred external types", 1);
+
fprintf(fp_c, "#include <asn_internal.h>\n\n");
fprintf(fp_c, "#include \"%s.h\"\n\n", expr->Identifier);
if(arg->flags & A1C_NO_INCLUDE_DEPS)