Commit 4737039b authored by Lev Walkin's avatar Lev Walkin

includes are outside of extern C {} clause

parent ae5540f5
...@@ -253,13 +253,13 @@ asn1c_save_streams(arg_t *arg, asn1c_fdeps_t *deps) { ...@@ -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_FWD_DECLS, "Forward declarations", 0);
SAVE_STREAM(fp_h, OT_TYPE_DECLS, expr->Identifier, 0); SAVE_STREAM(fp_h, OT_TYPE_DECLS, expr->Identifier, 0);
SAVE_STREAM(fp_h, OT_FUNC_DECLS,"Implementation", 0); SAVE_STREAM(fp_h, OT_FUNC_DECLS,"Implementation", 0);
fprintf(fp_h, "\n#ifdef __cplusplus\n}\n#endif\n\n" fprintf(fp_h, "\n#ifdef __cplusplus\n}\n#endif\n");
"#endif\t/* _%s_H_ */\n",
header_id);
if(!(arg->flags & A1C_NO_INCLUDE_DEPS)) if(!(arg->flags & A1C_NO_INCLUDE_DEPS))
SAVE_STREAM(fp_h, OT_POST_INCLUDE, "Referred external types", 1); 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 <asn_internal.h>\n\n");
fprintf(fp_c, "#include \"%s.h\"\n\n", expr->Identifier); fprintf(fp_c, "#include \"%s.h\"\n\n", expr->Identifier);
if(arg->flags & A1C_NO_INCLUDE_DEPS) if(arg->flags & A1C_NO_INCLUDE_DEPS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment