orcc: Add prototypes to c code
authorDavid Schleef <ds@schleef.org>
Thu, 27 May 2010 19:14:48 +0000 (12:14 -0700)
committerDavid Schleef <ds@schleef.org>
Thu, 27 May 2010 19:14:48 +0000 (12:14 -0700)
This allows GStreamer to use -Wmissing-declarations

tools/orcc.c

index cfbc7c8..7f53deb 100644 (file)
@@ -173,6 +173,10 @@ main (int argc, char *argv[])
       fprintf(output, "#include <%s>\n", include_file);
     }
     fprintf(output, "\n");
+    for(i=0;i<n;i++){
+      output_code_header (programs[i], output);
+    }
+    fprintf(output, "\n");
     fprintf(output, "%s", orc_target_get_asm_preamble ("c"));
     fprintf(output, "\n");
     for(i=0;i<n;i++){