orcc: put typedefs before prototypes
authorDavid Schleef <ds@schleef.org>
Thu, 10 Jun 2010 06:03:30 +0000 (23:03 -0700)
committerDavid Schleef <ds@schleef.org>
Thu, 10 Jun 2010 06:03:30 +0000 (23:03 -0700)
tools/orcc.c

index 753b7ad..e540004 100644 (file)
@@ -172,11 +172,12 @@ main (int argc, char *argv[])
       fprintf(output, "#include <%s>\n", include_file);
     }
     fprintf(output, "\n");
+    fprintf(output, "%s", orc_target_c_get_typedefs ());
+    fprintf(output, "\n");
     for(i=0;i<n;i++){
       output_code_header (programs[i], output);
     }
     fprintf(output, "\n");
-    fprintf(output, "%s", orc_target_c_get_typedefs ());
     fprintf(output, "%s", orc_target_get_asm_preamble ("c"));
     fprintf(output, "\n");
     for(i=0;i<n;i++){