includes are outside of extern C {} clause

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1031 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2006-02-19 04:26:37 +00:00
parent bbcad475da
commit c31283ae45
1 changed files with 3 additions and 4 deletions

View File

@ -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)