diff options
author | Lev Walkin <vlm@lionet.info> | 2005-07-15 18:49:41 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2005-07-15 18:49:41 +0000 |
commit | 3d551c06be2c9d2d950c4cb273a5270d566590ef (patch) | |
tree | 7b1247912379e3c9095e4700d24ff5bc799f1ce1 | |
parent | 57dabf18c7d822bcff113fc3be612daa386026d5 (diff) |
#includes moved out of __cplusplus
-rw-r--r-- | libasn1compiler/asn1c_save.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libasn1compiler/asn1c_save.c b/libasn1compiler/asn1c_save.c index 8fc0fcf1..8a67e26e 100644 --- a/libasn1compiler/asn1c_save.c +++ b/libasn1compiler/asn1c_save.c @@ -227,9 +227,7 @@ asn1c_save_streams(arg_t *arg, asn1c_fdeps_t *deps) { "#define\t_%s_H_\n" "\n", header_id, header_id); - fprintf(fp_h, "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n"); - - fprintf(fp_h, "#include <asn_application.h>\n"); + fprintf(fp_h, "\n#include <asn_application.h>\n"); #define SAVE_STREAM(fp, idx, msg, actdep) do { \ if(TQ_FIRST(&(cs->destination[idx].chunks)) && *msg) \ @@ -241,6 +239,9 @@ asn1c_save_streams(arg_t *arg, asn1c_fdeps_t *deps) { } while(0) 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); |