aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1compiler
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-02-19 04:30:15 +0000
committerLev Walkin <vlm@lionet.info>2006-02-19 04:30:15 +0000
commit4737039b8def5c5d4bac4613535d63db79281e70 (patch)
tree4a48e1217be1a750a3dba9af029550744a21d7ee /libasn1compiler
parentae5540f5ea9f625b91f2d545091bbd7aed66d8be (diff)
includes are outside of extern C {} clause
Diffstat (limited to 'libasn1compiler')
-rw-r--r--libasn1compiler/asn1c_save.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libasn1compiler/asn1c_save.c b/libasn1compiler/asn1c_save.c
index d1876eed..194dabd1 100644
--- a/libasn1compiler/asn1c_save.c
+++ b/libasn1compiler/asn1c_save.c
@@ -253,13 +253,13 @@ asn1c_save_streams(arg_t *arg, asn1c_fdeps_t *deps) {
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);
- fprintf(fp_h, "\n#ifdef __cplusplus\n}\n#endif\n\n"
- "#endif\t/* _%s_H_ */\n",
- header_id);
+ fprintf(fp_h, "\n#ifdef __cplusplus\n}\n#endif\n");
if(!(arg->flags & A1C_NO_INCLUDE_DEPS))
SAVE_STREAM(fp_h, OT_POST_INCLUDE, "Referred external types", 1);
+ fprintf(fp_h, "\n#endif\t/* _%s_H_ */\n", header_id);
+
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)