]> rtime.felk.cvut.cz Git - frescor/forb.git/commitdiff
Added support for native types.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 14 Sep 2008 08:52:16 +0000 (10:52 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 14 Sep 2008 08:52:16 +0000 (10:52 +0200)
forb-idl/forb-idl-c-headers.c

index 1fa49ee2701a3e82aea8d4f588337e0483d4590e..04ff53549ae65310d5d964cfc06eda5936e222ca 100644 (file)
@@ -148,7 +148,8 @@ forb_idl_output_c_headers (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci)
 
   fprintf(ci->fh, "#include <forb/forb.h>\n");
   fprintf(ci->fh, "#define FORB_IDL_SERIAL %d\n", FORB_CONFIG_SERIAL);
-  fprintf(ci->fh, "#include <forb/basic_types.h>\n\n");
+  fprintf(ci->fh, "#include <forb/basic_types.h>\n");
+  fprintf(ci->fh, "#include <idl_native.h> /* Support of native types defined in IDL. This header should be provided by an application. */\n\n");
 
   fprintf(ci->fh, "#ifdef __cplusplus\n");
   fprintf(ci->fh, "extern \"C\" {\n");