summaryrefslogtreecommitdiff
path: root/mpg2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpg2c.c')
-rw-r--r--mpg2c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpg2c.c b/mpg2c.c
index 5847b353..50c1e25a 100644
--- a/mpg2c.c
+++ b/mpg2c.c
@@ -6,7 +6,7 @@
*
* mpg2.c:
*
- * $Id: mpg2c.c,v 1.2 2006-06-04 08:18:18 phintuka Exp $
+ * $Id: mpg2c.c,v 1.3 2006-06-04 11:00:04 phintuka Exp $
*
*/
@@ -32,7 +32,7 @@ int main(int argc, char *argv[])
printf("Error opening files\n");
return -1;
}
- fprintf(fo, "const unsigned char v_mpg_%s[] = \n \"", argv[1]);
+ fprintf(fo, "extern const unsigned char v_mpg_%s[] = \n \"", argv[1]);
while(EOF != (ch = fgetc(fi))) {
fprintf(fo, "\\x%02x", ch);
if(pos++ > LINELEN) {
@@ -40,7 +40,7 @@ int main(int argc, char *argv[])
pos=1;
}
}
- fprintf(fo, "\";\n\nconst int v_mpg_%s_length = sizeof(v_mpg_%s);\n\n",
+ fprintf(fo, "\";\n\nextern const int v_mpg_%s_length = sizeof(v_mpg_%s);\n\n",
argv[1], argv[1]);
fclose(fi);